mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 11:33:47 +03:00
bug fix for error reported by Marek Sarvas (error data)
This commit is contained in:
parent
1d8953ebdb
commit
e0fe5d1504
|
@ -1354,7 +1354,7 @@ def getPartRun():
|
||||||
|
|
||||||
def getUnicode(value):
|
def getUnicode(value):
|
||||||
if isinstance(value, basestring):
|
if isinstance(value, basestring):
|
||||||
return value if isinstance(value, unicode) else unicode(value, conf.dataEncoding if 'dataEncoding' in conf else "utf-8")
|
return value if isinstance(value, unicode) else unicode(value, conf.dataEncoding if 'dataEncoding' in conf else "utf-8", errors='replace')
|
||||||
else:
|
else:
|
||||||
return unicode(value)
|
return unicode(value)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user