mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
update for a previous update (putting conf.dataEncoding in getUnicode wherever we know that data won't be 'touched' or 'used' in anyway related to the current web page - if not sure, just leave it as it is)
This commit is contained in:
@@ -45,7 +45,7 @@ def direct(query, content=True):
|
||||
output = timeout(func=conf.dbmsConnector.select, args=(query,), duration=conf.timeout, default=None)
|
||||
|
||||
infoMsg = "resumed from file '%s': " % conf.sessionFile
|
||||
infoMsg += "%s..." % getUnicode(output)[:20]
|
||||
infoMsg += "%s..." % getUnicode(output, conf.dataEncoding)[:20]
|
||||
logger.info(infoMsg)
|
||||
else:
|
||||
output = timeout(func=conf.dbmsConnector.select, args=(query,), duration=conf.timeout, default=None)
|
||||
@@ -61,7 +61,7 @@ def direct(query, content=True):
|
||||
out = list(output)[0][0]
|
||||
if isinstance(out, str):
|
||||
out = utf8decode(out)
|
||||
return getUnicode(out)
|
||||
return getUnicode(out, conf.dataEncoding)
|
||||
else:
|
||||
return list(output)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user