mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
minor update
This commit is contained in:
parent
16b286982d
commit
154d947c62
|
@ -148,7 +148,8 @@ def decodePage(page, contentEncoding, contentType):
|
||||||
charset = checkCharEncoding(charset)
|
charset = checkCharEncoding(charset)
|
||||||
kb.pageEncoding = charset or DEFAULT_PAGE_ENCODING
|
kb.pageEncoding = charset or DEFAULT_PAGE_ENCODING
|
||||||
|
|
||||||
if contentType and any(map(lambda x: x in contentType, ('text/html', 'text/txt'))):
|
if contentType and any(map(lambda x: x in contentType.lower(), ('text/txt', 'text/raw', 'text/html', 'text/xml'))):
|
||||||
|
# can't do for all responses because we need to support binary files too
|
||||||
page = getUnicode(page, kb.pageEncoding)
|
page = getUnicode(page, kb.pageEncoding)
|
||||||
|
|
||||||
return page
|
return page
|
||||||
|
|
Loading…
Reference in New Issue
Block a user