mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Minor patch for --parse-errors logic
This commit is contained in:
parent
b3f3405775
commit
8d91c65bdb
3 changed files with 4 additions and 6 deletions
|
|
@ -2884,9 +2884,6 @@ def extractErrorMessage(page):
|
|||
retVal = None
|
||||
|
||||
if isinstance(page, six.string_types):
|
||||
if wasLastResponseDBMSError():
|
||||
page = re.sub(r"<[^>]+>", "", page)
|
||||
|
||||
for regex in ERROR_PARSING_REGEXES:
|
||||
match = re.search(regex, page, re.IGNORECASE)
|
||||
|
||||
|
|
@ -2897,6 +2894,7 @@ def extractErrorMessage(page):
|
|||
break
|
||||
|
||||
if not retVal and wasLastResponseDBMSError():
|
||||
page = re.sub(r"<[^>]+>", "", page)
|
||||
match = re.search(r"[^\n]*SQL[^\n:]*:[^\n]*", page, re.IGNORECASE)
|
||||
|
||||
if match:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue