added --scope feature regarding Feature #105

This commit is contained in:
Miroslav Stampar
2010-01-09 20:44:50 +00:00
parent f316e722c1
commit d58ba7ee6d
4 changed files with 16 additions and 3 deletions

View File

@@ -162,7 +162,10 @@ def __feedTargetsDict(reqFile, addedTargetUrls):
elif method is not None and method == "POST" and "=" in line:
data = line
params = True
if conf.scope:
getPostReq &= re.search(conf.scope, host) is not None
if getPostReq and params:
if not url.startswith("http"):
url = "%s://%s:%s%s" % (scheme or "http", host, port or "80", url)