[svn] commit: r1213 - /trunk/src/lib/python/isc/auth/master.py

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Mar 8 19:33:51 UTC 2010


Author: each
Date: Mon Mar  8 19:33:51 2010
New Revision: 1213

Log:
isname() did not recognize '.' as a valid name

Modified:
    trunk/src/lib/python/isc/auth/master.py

Modified: trunk/src/lib/python/isc/auth/master.py
==============================================================================
--- trunk/src/lib/python/isc/auth/master.py (original)
+++ trunk/src/lib/python/isc/auth/master.py Mon Mar  8 19:33:51 2010
@@ -133,7 +133,7 @@
 name_regex = re.compile('[-\w\$\d\/*]+(?:\.[-\w\$\d\/]+)*\.?')
 def isname(s):
     global name_regex
-    if name_regex.match(s):
+    if s == '.' or name_regex.match(s):
         return True
     else:
         return False




More information about the bind10-changes mailing list