mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 13:03:50 +03:00
Revert of 9255174890
(bug was introduced with it)
This commit is contained in:
parent
93bf8e2a13
commit
a72d73804e
|
@ -1992,7 +1992,7 @@ def getUnicode(value, encoding=None, system=False, noneToNull=False):
|
||||||
try:
|
try:
|
||||||
return unicode(value, encoding or kb.get("pageEncoding") or UNICODE_ENCODING)
|
return unicode(value, encoding or kb.get("pageEncoding") or UNICODE_ENCODING)
|
||||||
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:]
|
value = value[:ex.start] + "".join(INVALID_UNICODE_CHAR_FORMAT % ord(_) for _ in value[ex.start:ex.end]) + value[ex.end:]
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
return unicode(value)
|
return unicode(value)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user