mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-07 17:02:39 +01:00
Potential patch for an Issue #1337
This commit is contained in:
parent
310d79b8f1
commit
713d5384bc
1 changed files with 4 additions and 2 deletions
|
|
@ -2280,8 +2280,10 @@ def findMultipartPostBoundary(post):
|
||||||
candidates = []
|
candidates = []
|
||||||
|
|
||||||
for match in re.finditer(r"(?m)^--(.+?)(--)?$", post or ""):
|
for match in re.finditer(r"(?m)^--(.+?)(--)?$", post or ""):
|
||||||
_ = match.group(1).strip().strip('-')
|
_ = re.search(r"\w+", match.group(1))
|
||||||
if _ in done:
|
_ = _.group(0) if _ else None
|
||||||
|
|
||||||
|
if _ is None or _ in done:
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
candidates.append((post.count(_), _))
|
candidates.append((post.count(_), _))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue