mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-08 09:24:01 +01:00
fix for a bug reported by David (UnicodeDecodeError: url = url + '?' + query)
This commit is contained in:
parent
a64407d9db
commit
1dea609019
1 changed files with 18 additions and 14 deletions
|
|
@ -113,6 +113,10 @@ class Connect:
|
|||
responseHeaders = None
|
||||
logHeaders = ""
|
||||
|
||||
# there are known issues when using url in unicode format
|
||||
# (e.g. UnicodeDecodeError: "url = url + '?' + query" in redirect case)
|
||||
url = unicodeencode(url)
|
||||
|
||||
try:
|
||||
if silent:
|
||||
socket.setdefaulttimeout(HTTP_SILENT_TIMEOUT)
|
||||
|
|
|
|||
Loading…
Reference in a new issue