minor update

This commit is contained in:
Miroslav Stampar 2011-11-22 07:32:39 +00:00
parent e905ea2a54
commit 493e436e16

View File

@ -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