Minor patch

This commit is contained in:
Miroslav Stampar
2019-11-12 23:05:32 +01:00
parent 7b89613c46
commit df8fa9cd82
2 changed files with 3 additions and 4 deletions

View File

@@ -4480,9 +4480,8 @@ def findPageForms(content, url, raise_=False, addToTargets=False):
if data:
data = data.lstrip("&=").rstrip('&')
if conf.scope:
if not re.search(conf.scope, url, re.I):
continue
if conf.scope and not re.search(conf.scope, url, re.I):
continue
elif not re.sub(r"(%s)=[^&]*&?" % '|'.join(IGNORE_PARAMETERS), "", data):
continue
elif not _: