mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
bug fix for charset used in inference for pages retrieved with --null-connection
This commit is contained in:
@@ -122,6 +122,9 @@ def decodePage(page, contentEncoding, contentType):
|
||||
Decode compressed/charset HTTP response
|
||||
"""
|
||||
|
||||
if not page or (conf.nullConnection and len(page) < 2):
|
||||
return getUnicode(page)
|
||||
|
||||
if isinstance(contentEncoding, basestring) and contentEncoding.lower() in ('gzip', 'x-gzip', 'deflate'):
|
||||
if contentEncoding == 'deflate':
|
||||
# http://stackoverflow.com/questions/1089662/python-inflate-and-deflate-implementations
|
||||
|
||||
Reference in New Issue
Block a user