Minor patch

This commit is contained in:
Miroslav Stampar 2016-05-27 16:43:01 +02:00
parent 69fd900108
commit 6327063bd0
2 changed files with 9 additions and 8 deletions

View File

@ -19,7 +19,7 @@ from lib.core.enums import OS
from lib.core.revision import getRevisionNumber
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.0.5.93"
VERSION = "1.0.5.94"
REVISION = getRevisionNumber()
STABLE = VERSION.count('.') <= 2
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

View File

@ -258,6 +258,7 @@ def decodePage(page, contentEncoding, contentType):
page = data.read()
except Exception, msg:
if "<html" not in page: # in some cases, invalid "Content-Encoding" appears for plain HTML (should be ignored)
errMsg = "detected invalid data for declared content "
errMsg += "encoding '%s' ('%s')" % (contentEncoding, msg)
singleTimeLogMessage(errMsg, logging.ERROR)