Skip to content

Commit f5ff78d

Browse files
committed
revert
1 parent db76bcb commit f5ff78d

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

lib/core/exception.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ class sqlmapConnectionException(Exception):
2020
class sqlmapDataException(Exception):
2121
pass
2222

23-
class sqlmapEndSAXParsing(Exception):
24-
pass
25-
2623
class sqlmapFilePathException(Exception):
2724
pass
2825

lib/parse/html.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from lib.core.common import sanitizeStr
1717
from lib.core.data import kb
1818
from lib.core.data import paths
19-
from lib.core.exception import sqlmapEndSAXParsing
2019
from lib.core.threads import getCurrentThreadData
2120

2221
class htmlHandler(ContentHandler):
@@ -48,7 +47,6 @@ def startElement(self, name, attrs):
4847
self.__match = None
4948
threadData = getCurrentThreadData()
5049
threadData.lastErrorPage = (threadData.lastRequestUID, self.__page)
51-
raise sqlmapEndSAXParsing
5250

5351
def htmlParser(page):
5452
"""
@@ -61,10 +59,7 @@ def htmlParser(page):
6159
page = sanitizeStr(page)
6260
handler = htmlHandler(page)
6361

64-
try:
65-
parseXmlFile(xmlfile, handler)
66-
except sqlmapEndSAXParsing:
67-
pass
62+
parseXmlFile(xmlfile, handler)
6863

6964
if handler.dbms and handler.dbms not in kb.htmlFp:
7065
kb.lastParserStatus = handler.dbms

0 commit comments

Comments
 (0)