This commit is contained in:
Your Name 2026-03-20 09:26:05 +01:00
parent e433332423
commit 0ed5cd2cfd
3 changed files with 8 additions and 4 deletions

View file

@ -4764,7 +4764,11 @@ def findPageForms(content, url, raiseException=False, addToTargets=False):
retVal.add(target)
for match in re.finditer(r"\.post\(['\"]([^'\"]*)['\"],\s*\{([^}]*)\}", content):
url = _urllib.parse.urljoin(url, htmlUnescape(match.group(1)))
try:
url = _urllib.parse.urljoin(url, htmlUnescape(match.group(1)))
except ValueError:
continue
data = ""
for name, value in re.findall(r"['\"]?(\w+)['\"]?\s*:\s*(['\"][^'\"]+)?", match.group(2)):