Removing leftover

This commit is contained in:
Miroslav Stampar
2016-06-01 16:32:22 +02:00
parent ec8cf6aadc
commit 8114c14755
2 changed files with 1 additions and 2 deletions

View File

@@ -354,7 +354,6 @@ def processResponse(page, responseHeaders):
conf.paramDict[PLACE.POST][name] = value
conf.parameters[PLACE.POST] = re.sub("(?i)(%s=)[^&]+" % name, r"\g<1>%s" % value, conf.parameters[PLACE.POST])
page += "<form>\n</form><form>\ncaptcha</form>"
if not kb.captchaDetected and re.search(r"(?i)captcha", page or ""):
for match in re.finditer(r"(?si)<form.+?</form>", page):
if re.search(r"(?i)captcha", match.group(0)):