From 1297df66dadbadd76bc7155af84eb8494287019f Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 6 Jan 2011 08:04:59 +0000 Subject: [PATCH] fix for a bug reported by abc abc (HierarchyRequestErr: two document elements disallowed) --- doc/THANKS | 3 +++ lib/core/xmldump.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/THANKS b/doc/THANKS index c0c954b37..1a8b12e59 100644 --- a/doc/THANKS +++ b/doc/THANKS @@ -393,6 +393,9 @@ Anthony Zboralski Thierry Zoller for reporting a couple of major bugs +abc abc + for reporting a minor bug + Brandon E. for reporting a bug diff --git a/lib/core/xmldump.py b/lib/core/xmldump.py index 8a535e77a..f7fcb0b01 100644 --- a/lib/core/xmldump.py +++ b/lib/core/xmldump.py @@ -487,7 +487,7 @@ class XMLDump: self.__doc = xml.dom.minidom.parse(self.__outputFile) self.__root = self.__doc.childNodes[0] except ExpatError: - pass + self.__doc = Document() self.__outputFP = codecs.open(self.__outputFile, "w+", conf.dataEncoding) @@ -500,7 +500,7 @@ class XMLDump: raise sqlmapFilePathException("Wrong filename provided for saving the xml file: %s" % conf.xmlFile) def getOutputFile(self): - return self.__outputFile + return self.__outputFile def finish(self, resultStatus, resultMsg=""): '''