mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
minor update
This commit is contained in:
parent
e905ea2a54
commit
493e436e16
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue