mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Patch to prevent problems like Issue #381
This commit is contained in:
parent
cfcf8a3abb
commit
d6606a8f31
|
@ -324,6 +324,10 @@ def _feedTargetsDict(reqFile, addedTargetUrls):
|
|||
scheme = "https"
|
||||
port = port or "443"
|
||||
|
||||
if not host:
|
||||
errMsg = "invalid format of a request file"
|
||||
raise SqlmapSyntaxException, errMsg
|
||||
|
||||
if not url.startswith("http"):
|
||||
url = "%s://%s:%s%s" % (scheme or "http", host, port or "80", url)
|
||||
scheme = None
|
||||
|
|
Loading…
Reference in New Issue
Block a user