mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
minor update
This commit is contained in:
parent
e905ea2a54
commit
493e436e16
|
@ -1256,7 +1256,7 @@ def parseTargetUrl():
|
||||||
conf.path = __urlSplit[2].strip()
|
conf.path = __urlSplit[2].strip()
|
||||||
conf.hostname = __hostnamePort[0].strip()
|
conf.hostname = __hostnamePort[0].strip()
|
||||||
|
|
||||||
if re.search(r'\s', conf.hostname):
|
if any((re.search(r'\s', conf.hostname), '..' in conf.hostname, conf.hostname.startswith('.'))):
|
||||||
errMsg = "invalid target url"
|
errMsg = "invalid target url"
|
||||||
raise sqlmapSyntaxException, errMsg
|
raise sqlmapSyntaxException, errMsg
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user