mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Another just in case update for an Issue #1011
This commit is contained in:
@@ -1264,7 +1264,7 @@ def parseTargetUrl():
|
|||||||
try:
|
try:
|
||||||
_ = conf.hostname.encode("idna")
|
_ = conf.hostname.encode("idna")
|
||||||
except LookupError:
|
except LookupError:
|
||||||
_ = conf.hostname
|
_ = conf.hostname.encode(UNICODE_ENCODING)
|
||||||
except UnicodeError:
|
except UnicodeError:
|
||||||
_ = None
|
_ = None
|
||||||
|
|
||||||
@@ -3385,7 +3385,10 @@ def asciifyUrl(url, forceQuote=False):
|
|||||||
return url
|
return url
|
||||||
|
|
||||||
# idna-encode domain
|
# idna-encode domain
|
||||||
|
try:
|
||||||
hostname = parts.hostname.encode("idna")
|
hostname = parts.hostname.encode("idna")
|
||||||
|
except LookupError:
|
||||||
|
hostname = parts.hostname.encode(UNICODE_ENCODING)
|
||||||
|
|
||||||
# UTF8-quote the other parts. We check each part individually if
|
# UTF8-quote the other parts. We check each part individually if
|
||||||
# if needs to be quoted - that should catch some additional user
|
# if needs to be quoted - that should catch some additional user
|
||||||
|
|||||||
Reference in New Issue
Block a user