mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
removing xmlcharrefreplace error handler as it seems that it wasn't such a good idea at the end
This commit is contained in:
@@ -1798,7 +1798,7 @@ def getUnicode(value, encoding=None, system=False):
|
||||
if isinstance(value, unicode):
|
||||
return value
|
||||
elif isinstance(value, basestring):
|
||||
return unicode(value, encoding or UNICODE_ENCODING, errors="xmlcharrefreplace")
|
||||
return unicode(value, encoding or UNICODE_ENCODING, errors="replace")
|
||||
else:
|
||||
return unicode(value) # encoding ignored for non-basestring instances
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user