mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Another just in case update for an Issue #1011
This commit is contained in:
parent
763f720675
commit
2bcaae3a0b
|
@ -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
|
||||||
hostname = parts.hostname.encode("idna")
|
try:
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user