mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +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:
parent
595f69fa2c
commit
333f8057a5
3 changed files with 7 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue