mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
page for handling binary files
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user