mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Fixes #1350
This commit is contained in:
parent
fef8f20565
commit
1204141278
|
@ -3470,8 +3470,13 @@ def asciifyUrl(url, forceQuote=False):
|
||||||
netloc = ':' + password + netloc
|
netloc = ':' + password + netloc
|
||||||
netloc = username + netloc
|
netloc = username + netloc
|
||||||
|
|
||||||
if parts.port:
|
try:
|
||||||
netloc += ':' + str(parts.port)
|
port = parts.port
|
||||||
|
except:
|
||||||
|
port = None
|
||||||
|
|
||||||
|
if port:
|
||||||
|
netloc += ':' + str(port)
|
||||||
|
|
||||||
return urlparse.urlunsplit([parts.scheme, netloc, path, query, parts.fragment])
|
return urlparse.urlunsplit([parts.scheme, netloc, path, query, parts.fragment])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user