Browse Source

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

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1213 e5f2f494-b856-4b98-b285-d166d9295462
Evan Hunt 15 years ago
parent
commit
2880eefecc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/python/isc/auth/master.py

+ 1 - 1
src/lib/python/isc/auth/master.py

@@ -133,7 +133,7 @@ def isclass(s):
 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