mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
minor fix (when redirected path has non-ASCII char and conf.url is unicode) and bits along with pieces
This commit is contained in:
@@ -77,7 +77,7 @@ def urldecode(value, encoding=None):
|
||||
result = urllib.unquote_plus(value)
|
||||
|
||||
if isinstance(result, str):
|
||||
result = unicode(result, encoding or UNICODE_ENCODING, errors="replace")
|
||||
result = unicode(result, encoding or UNICODE_ENCODING, "replace")
|
||||
|
||||
return result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user