mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-03 23:33:47 +03:00
minor update of parseTargetUrl method
This commit is contained in:
parent
ceca64193b
commit
81011be0d7
|
@ -684,9 +684,13 @@ def parseTargetUrl():
|
||||||
__urlSplit = urlparse.urlsplit(conf.url)
|
__urlSplit = urlparse.urlsplit(conf.url)
|
||||||
__hostnamePort = __urlSplit[1].split(":")
|
__hostnamePort = __urlSplit[1].split(":")
|
||||||
|
|
||||||
conf.scheme = __urlSplit[0]
|
conf.scheme = __urlSplit[0].strip()
|
||||||
conf.path = __urlSplit[2]
|
conf.path = __urlSplit[2].strip()
|
||||||
conf.hostname = __hostnamePort[0]
|
conf.hostname = __hostnamePort[0].strip()
|
||||||
|
|
||||||
|
if re.search(r'\s', conf.hostname):
|
||||||
|
errMsg = "invalid target url"
|
||||||
|
raise sqlmapSyntaxException, errMsg
|
||||||
|
|
||||||
if len(__hostnamePort) == 2:
|
if len(__hostnamePort) == 2:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user