mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Initial support for #2709 (more work to be done)
This commit is contained in:
parent
116c1c8b5c
commit
db94d24db1
13 changed files with 59 additions and 45 deletions
|
|
@ -279,7 +279,7 @@ def decodePage(page, contentEncoding, contentType):
|
|||
kb.pageCompress = False
|
||||
raise SqlmapCompressionException
|
||||
|
||||
if not conf.charset:
|
||||
if not conf.encoding:
|
||||
httpCharset, metaCharset = None, None
|
||||
|
||||
# Reference: http://stackoverflow.com/questions/1020892/python-urllib2-read-to-unicode
|
||||
|
|
@ -296,7 +296,7 @@ def decodePage(page, contentEncoding, contentType):
|
|||
else:
|
||||
kb.pageEncoding = None
|
||||
else:
|
||||
kb.pageEncoding = conf.charset
|
||||
kb.pageEncoding = conf.encoding
|
||||
|
||||
# can't do for all responses because we need to support binary files too
|
||||
if contentType and not isinstance(page, unicode) and "text/" in contentType.lower():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue