mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-23 01:56:36 +03:00
Minor fix
This commit is contained in:
parent
9255174890
commit
5eae002084
|
@ -1994,7 +1994,7 @@ def getUnicode(value, encoding=None, system=False, noneToNull=False):
|
||||||
except UnicodeDecodeError, ex:
|
except UnicodeDecodeError, ex:
|
||||||
return value[:ex.start] + "".join(INVALID_UNICODE_CHAR_FORMAT % ord(_) for _ in value[ex.start:ex.end]) + value[ex.end:]
|
return value[:ex.start] + "".join(INVALID_UNICODE_CHAR_FORMAT % ord(_) for _ in value[ex.start:ex.end]) + value[ex.end:]
|
||||||
else:
|
else:
|
||||||
return unicode(value) # encoding ignored for non-basestring instances
|
return unicode(value, errors="ignore") # encoding ignored for non-basestring instances
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
return getUnicode(value, sys.getfilesystemencoding() or sys.stdin.encoding)
|
return getUnicode(value, sys.getfilesystemencoding() or sys.stdin.encoding)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user