Browse Source

make sure zone name ends with '.'

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1681 e5f2f494-b856-4b98-b285-d166d9295462
JINMEI Tatuya 15 years ago
parent
commit
96f1c6dc81
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/lib/python/isc/auth/sqlite3_ds.py

+ 4 - 0
src/lib/python/isc/auth/sqlite3_ds.py

@@ -218,6 +218,10 @@ class AXFRInDB:
     def __init__(self, dbfile, zone_name):
         self._dbfile = dbfile
         self._zone_name = zone_name
+        # if the zone name doesn't contain the trailing dot, automatically
+        # add it.
+        if self._zone_name[-1] != '.':
+            self._zone_name += '.'
         self._old_zone_id = None
         self._new_zone_id = None