Changeset 648 for trunk/packages


Ignore:
Timestamp:
Jun 23, 2008, 9:28:19 PM (16 years ago)
Author:
ecprice
Message:

More accurate validMachineName (no _, 63 character limit).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-www/code/validation.py

    r647 r648  
    136136    if not name:
    137137        return False
    138     charset = string.ascii_letters + string.digits + '-_'
    139     if name[0] in '-_' or len(name) > 22:
     138    charset = string.lowercase + string.digits + '-'
     139    if '-' in (name[0], name[-1]) or len(name) > 63:
    140140        return False
    141141    for x in name:
Note: See TracChangeset for help on using the changeset viewer.