mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
fix for one of those more complex bugs (comparison was returning None while original page and/or page template were already had already DBMS error inside)
This commit is contained in:
@@ -12,11 +12,11 @@ import re
|
||||
from xml.sax.handler import ContentHandler
|
||||
|
||||
from lib.core.common import checkFile
|
||||
from lib.core.common import getCurrentThreadData
|
||||
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.threads import getCurrentThreadData
|
||||
|
||||
class htmlHandler(ContentHandler):
|
||||
"""
|
||||
@@ -59,6 +59,9 @@ def htmlParser(page):
|
||||
parseXmlFile(xmlfile, handler)
|
||||
|
||||
if handler.dbms and handler.dbms not in kb.htmlFp:
|
||||
kb.lastParserStatus = handler.dbms
|
||||
kb.htmlFp.append(handler.dbms)
|
||||
else:
|
||||
kb.lastParserStatus = None
|
||||
|
||||
return handler.dbms
|
||||
|
||||
Reference in New Issue
Block a user