mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +03:00
page for handling binary files
This commit is contained in:
parent
8e74c571bc
commit
b98cbeee04
|
@ -145,7 +145,10 @@ def decodePage(page, contentEncoding, contentType):
|
|||
charset = checkCharEncoding(charset)
|
||||
kb.pageEncoding = charset or DEFAULT_PAGE_ENCODING
|
||||
|
||||
return getUnicode(page, kb.pageEncoding)
|
||||
if contentType and any(map(lambda x: x in contentType, ('text/html', 'text/txt'))):
|
||||
page = getUnicode(page, kb.pageEncoding)
|
||||
|
||||
return page
|
||||
|
||||
def processResponse(page, responseHeaders):
|
||||
page = getUnicode(page)
|
||||
|
|
Loading…
Reference in New Issue
Block a user