mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-31 15:40:46 +00:00
Couple of minor patches
This commit is contained in:
parent
9ad3cd5176
commit
404d8481ad
3 changed files with 5 additions and 4 deletions
|
|
@ -4421,7 +4421,7 @@ def findPageForms(content, url, raise_=False, addToTargets=False):
|
|||
try:
|
||||
forms = ParseResponse(response, backwards_compat=False)
|
||||
except ParseError:
|
||||
if re.search(r"(?i)<!DOCTYPE html|<html", content or ""):
|
||||
if re.search(r"(?i)<!DOCTYPE html|<html", content or "") and not re.search(r"(?i)\.js(\?|\Z)", url):
|
||||
dbgMsg = "badly formed HTML at the given URL ('%s'). Going to filter it" % url
|
||||
logger.debug(dbgMsg)
|
||||
filtered = _("".join(re.findall(FORM_SEARCH_REGEX, content)), url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue