From f5ff78d40c5efeb3f80d2cc293c6393fd8629146 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 23 Jan 2011 11:21:27 +0000 Subject: [PATCH] revert --- lib/core/exception.py | 3 --- lib/parse/html.py | 7 +------ 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/core/exception.py b/lib/core/exception.py index bf4d85d87..83eaa8b31 100644 --- a/lib/core/exception.py +++ b/lib/core/exception.py @@ -20,9 +20,6 @@ class sqlmapConnectionException(Exception): class sqlmapDataException(Exception): pass -class sqlmapEndSAXParsing(Exception): - pass - class sqlmapFilePathException(Exception): pass diff --git a/lib/parse/html.py b/lib/parse/html.py index 419aa66c7..c29aa1947 100644 --- a/lib/parse/html.py +++ b/lib/parse/html.py @@ -16,7 +16,6 @@ from lib.core.common import parseXmlFile from lib.core.common import sanitizeStr from lib.core.data import kb from lib.core.data import paths -from lib.core.exception import sqlmapEndSAXParsing from lib.core.threads import getCurrentThreadData class htmlHandler(ContentHandler): @@ -48,7 +47,6 @@ class htmlHandler(ContentHandler): self.__match = None threadData = getCurrentThreadData() threadData.lastErrorPage = (threadData.lastRequestUID, self.__page) - raise sqlmapEndSAXParsing def htmlParser(page): """ @@ -61,10 +59,7 @@ def htmlParser(page): page = sanitizeStr(page) handler = htmlHandler(page) - try: - parseXmlFile(xmlfile, handler) - except sqlmapEndSAXParsing: - pass + parseXmlFile(xmlfile, handler) if handler.dbms and handler.dbms not in kb.htmlFp: kb.lastParserStatus = handler.dbms