Skip to content

Commit 3c25f79

Browse files
committed
1 parent 94ab178 commit 3c25f79

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from thirdparty.six import unichr as _unichr
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.5.5.9"
22+
VERSION = "1.5.5.10"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/request/comparison.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from lib.core.common import getFilteredPageContent
1414
from lib.core.common import listToStrValue
1515
from lib.core.common import removeDynamicContent
16+
from lib.core.common import getLastRequestHTTPError
1617
from lib.core.common import wasLastResponseDBMSError
1718
from lib.core.common import wasLastResponseHTTPError
1819
from lib.core.convert import getBytes
@@ -91,7 +92,8 @@ def _comparison(page, headers, code, getRatioValue, pageLength):
9192
if page:
9293
# In case of an DBMS error page return None
9394
if kb.errorIsNone and (wasLastResponseDBMSError() or wasLastResponseHTTPError()) and not kb.negativeLogic:
94-
return None
95+
if not (wasLastResponseHTTPError() and getLastRequestHTTPError() in (conf.ignoreCode or [])):
96+
return None
9597

9698
# Dynamic content lines to be excluded before comparison
9799
if not kb.nullConnection:

0 commit comments

Comments
 (0)