mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-16 19:40:37 +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
|
# support those by default
|
||||||
url = asciifyUrl(url)
|
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:
|
try:
|
||||||
socket.setdefaulttimeout(timeout)
|
socket.setdefaulttimeout(timeout)
|
||||||
|
|
||||||
|
@ -353,6 +349,7 @@ class Connect(object):
|
||||||
del headers[key]
|
del headers[key]
|
||||||
headers[unicodeencode(key, kb.pageEncoding)] = unicodeencode(item, kb.pageEncoding)
|
headers[unicodeencode(key, kb.pageEncoding)] = unicodeencode(item, kb.pageEncoding)
|
||||||
|
|
||||||
|
url = unicodeencode(url)
|
||||||
post = unicodeencode(post, kb.pageEncoding)
|
post = unicodeencode(post, kb.pageEncoding)
|
||||||
|
|
||||||
if method and method not in (HTTPMETHOD.GET, HTTPMETHOD.POST):
|
if method and method not in (HTTPMETHOD.GET, HTTPMETHOD.POST):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user