mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +03:00
Potential patch for an Issue #1093
This commit is contained in:
parent
30b9f3d556
commit
450b3c93cb
|
@ -263,10 +263,6 @@ class Connect(object):
|
|||
# support those by default
|
||||
url = asciifyUrl(url)
|
||||
|
||||
# fix for known issues when using url in unicode format
|
||||
# (e.g. UnicodeDecodeError: "url = url + '?' + query" in redirect case)
|
||||
url = unicodeencode(url)
|
||||
|
||||
try:
|
||||
socket.setdefaulttimeout(timeout)
|
||||
|
||||
|
@ -353,6 +349,7 @@ class Connect(object):
|
|||
del headers[key]
|
||||
headers[unicodeencode(key, kb.pageEncoding)] = unicodeencode(item, kb.pageEncoding)
|
||||
|
||||
url = unicodeencode(url)
|
||||
post = unicodeencode(post, kb.pageEncoding)
|
||||
|
||||
if method and method not in (HTTPMETHOD.GET, HTTPMETHOD.POST):
|
||||
|
|
Loading…
Reference in New Issue
Block a user