mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-12 19:32:41 +00:00
Revert of last commit (Fixes #3179)
This commit is contained in:
parent
29dcdd3bef
commit
5cc36a5736
3 changed files with 4 additions and 4 deletions
|
|
@ -2334,7 +2334,7 @@ def getUnicode(value, encoding=None, noneToNull=False):
|
|||
try:
|
||||
return unicode(value, UNICODE_ENCODING)
|
||||
except:
|
||||
value = getUnicode(value[:ex.start], UNICODE_ENCODING) + u"".join(INVALID_UNICODE_CHAR_FORMAT % ord(_) for _ in value[ex.start:ex.end]) + getUnicode(value[ex.end:], UNICODE_ENCODING)
|
||||
value = value[:ex.start] + "".join(INVALID_UNICODE_CHAR_FORMAT % ord(_) for _ in value[ex.start:ex.end]) + value[ex.end:]
|
||||
elif isListLike(value):
|
||||
value = list(getUnicode(_, encoding, noneToNull) for _ in value)
|
||||
return value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue