mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-13 17:43:20 +03:00
fix for a bug reported by David (UnicodeDecodeError: url = url + '?' + query)
This commit is contained in:
parent
a64407d9db
commit
1dea609019
|
@ -113,6 +113,10 @@ class Connect:
|
||||||
responseHeaders = None
|
responseHeaders = None
|
||||||
logHeaders = ""
|
logHeaders = ""
|
||||||
|
|
||||||
|
# there are known issues when using url in unicode format
|
||||||
|
# (e.g. UnicodeDecodeError: "url = url + '?' + query" in redirect case)
|
||||||
|
url = unicodeencode(url)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if silent:
|
if silent:
|
||||||
socket.setdefaulttimeout(HTTP_SILENT_TIMEOUT)
|
socket.setdefaulttimeout(HTTP_SILENT_TIMEOUT)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user