mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-22 10:54:22 +03:00
Debug message with declared page charset
This commit is contained in:
parent
d29dddf5b2
commit
155c1eddae
|
@ -222,9 +222,11 @@ def decodePage(page, contentEncoding, contentType):
|
||||||
|
|
||||||
metaCharset = checkCharEncoding(extractRegexResult(META_CHARSET_REGEX, page))
|
metaCharset = checkCharEncoding(extractRegexResult(META_CHARSET_REGEX, page))
|
||||||
|
|
||||||
if ((httpCharset or metaCharset) and not all([httpCharset, metaCharset]))\
|
if (any((httpCharset, metaCharset)) and not all((httpCharset, metaCharset)))\
|
||||||
or (httpCharset == metaCharset and all([httpCharset, metaCharset])):
|
or (httpCharset == metaCharset and all((httpCharset, metaCharset))):
|
||||||
kb.pageEncoding = httpCharset or metaCharset
|
kb.pageEncoding = httpCharset or metaCharset
|
||||||
|
debugMsg = "declared web page charset '%s'" % kb.pageEncoding
|
||||||
|
singleTimeLogMessage(debugMsg, logging.DEBUG, debugMsg)
|
||||||
else:
|
else:
|
||||||
kb.pageEncoding = None
|
kb.pageEncoding = None
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user