mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Trivial update (drei nagging)
This commit is contained in:
parent
eeffcfe1b6
commit
9c95445723
2 changed files with 2 additions and 2 deletions
2
thirdparty/multipart/multipartpost.py
vendored
2
thirdparty/multipart/multipartpost.py
vendored
|
|
@ -71,7 +71,7 @@ class MultipartPostHandler(_urllib.request.BaseHandler):
|
|||
|
||||
# NOTE: https://github.com/sqlmapproject/sqlmap/issues/4235
|
||||
if request.data:
|
||||
for match in re.finditer(b"(?i)\s*-{20,}\w+(\s+Content-Disposition[^\n]+\s+|\-\-\s*)", request.data):
|
||||
for match in re.finditer(b"(?i)\\s*-{20,}\\w+(\\s+Content-Disposition[^\\n]+\\s+|\\-\\-\\s*)", request.data):
|
||||
part = match.group(0)
|
||||
if b'\r' not in part:
|
||||
request.data = request.data.replace(part, part.replace(b'\n', b"\r\n"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue