mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-08 05:31:32 +00:00
Potential patch for an Issue #1093
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user