mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-26 07:59:52 +03:00
improved dumb LF to CRLF converter
This commit is contained in:
parent
13e293c733
commit
c47aa581f3
4
thirdparty/multipart/multipartpost.py
vendored
4
thirdparty/multipart/multipartpost.py
vendored
|
@ -74,6 +74,10 @@ class MultipartPostHandler(_urllib.request.BaseHandler):
|
||||||
part = match.group(0)
|
part = match.group(0)
|
||||||
if b'\r' not in part:
|
if b'\r' not in part:
|
||||||
request.data = request.data.replace(part, part.replace(b'\n', b"\r\n"))
|
request.data = request.data.replace(part, part.replace(b'\n', b"\r\n"))
|
||||||
|
for match in re.finditer(b"(Content-Type[^\\n]+[\\n|\\r|\\r\\n]+)",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"))
|
||||||
|
|
||||||
return request
|
return request
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user