mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-11 19:13:12 +00:00
Patch related to #4527 (drei)
This commit is contained in:
parent
779b352f6b
commit
f84ec1072b
3 changed files with 3 additions and 3 deletions
|
|
@ -303,7 +303,7 @@ def decodePage(page, contentEncoding, contentType, percentDecode=True):
|
|||
|
||||
page = data.read()
|
||||
except Exception as ex:
|
||||
if "<html" not in page: # in some cases, invalid "Content-Encoding" appears for plain HTML (should be ignored)
|
||||
if b"<html" not in page: # in some cases, invalid "Content-Encoding" appears for plain HTML (should be ignored)
|
||||
errMsg = "detected invalid data for declared content "
|
||||
errMsg += "encoding '%s' ('%s')" % (contentEncoding, getSafeExString(ex))
|
||||
singleTimeLogMessage(errMsg, logging.ERROR)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue