Skip to content

Commit f84ec10

Browse files
committed
Patch related to sqlmapproject#4527 (drei)
1 parent 779b352 commit f84ec10

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/core/settings.py

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

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

lib/request/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def decodePage(page, contentEncoding, contentType, percentDecode=True):
303303

304304
page = data.read()
305305
except Exception as ex:
306-
if "<html" not in page: # in some cases, invalid "Content-Encoding" appears for plain HTML (should be ignored)
306+
if b"<html" not in page: # in some cases, invalid "Content-Encoding" appears for plain HTML (should be ignored)
307307
errMsg = "detected invalid data for declared content "
308308
errMsg += "encoding '%s' ('%s')" % (contentEncoding, getSafeExString(ex))
309309
singleTimeLogMessage(errMsg, logging.ERROR)

lib/request/connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def _connReadProxy(conn):
241241
if len(part) == MAX_CONNECTION_READ_SIZE:
242242
warnMsg = "large response detected. This could take a while"
243243
singleTimeWarnMessage(warnMsg)
244-
part = re.sub(r"(?si)%s.+?%s" % (kb.chars.stop, kb.chars.start), "%s%s%s" % (kb.chars.stop, LARGE_READ_TRIM_MARKER, kb.chars.start), part)
244+
part = re.sub(getBytes(r"(?si)%s.+?%s" % (kb.chars.stop, kb.chars.start)), getBytes("%s%s%s" % (kb.chars.stop, LARGE_READ_TRIM_MARKER, kb.chars.start)), part)
245245
retVal += part
246246
else:
247247
retVal += part

0 commit comments

Comments
 (0)