mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Fixes #6037
This commit is contained in:
parent
e433332423
commit
0ed5cd2cfd
3 changed files with 8 additions and 4 deletions
|
|
@ -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)):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue