This commit is contained in:
Miroslav Stampar
2016-05-24 14:17:00 +02:00
parent a81ea88eb0
commit 70cf8edc75
2 changed files with 3 additions and 3 deletions

View File

@@ -1379,8 +1379,8 @@ def parseTargetUrl():
except UnicodeError:
_ = None
if any((_ is None, re.search(r'\s', conf.hostname), '..' in conf.hostname, conf.hostname.startswith('.'))):
errMsg = "invalid target URL"
if any((_ is None, re.search(r'\s', conf.hostname), '..' in conf.hostname, conf.hostname.startswith('.'), '\n' in originalUrl)):
errMsg = "invalid target URL ('%s')" % originalUrl
raise SqlmapSyntaxException(errMsg)
if len(hostnamePort) == 2: