]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
This patch changes the parser to allow file names used in an $INCLUDE statement to...
authoruberj <uberj@onid.orst.edu>
Tue, 22 May 2012 17:55:57 +0000 (10:55 -0700)
committeruberj <uberj@onid.orst.edu>
Tue, 22 May 2012 17:55:57 +0000 (10:55 -0700)
RFC 1035 doesn't explicitly say that the file name must be surrounded by quotes and bind supports the no quote format.

dns/zone.py

index ac16ad35363c870a13e94fbed6664b77d8d031cc..404f81819fdd28ae9f59777465c37a163c9436b1 100644 (file)
@@ -682,8 +682,6 @@ class _MasterReader(object):
                             self.zone.origin = self.current_origin
                     elif u == '$INCLUDE' and self.allow_include:
                         token = self.tok.get()
-                        if not token.is_quoted_string():
-                            raise dns.exception.SyntaxError("bad filename in $INCLUDE")
                         filename = token.value
                         token = self.tok.get()
                         if token.is_identifier():