mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-08 13:41:29 +00:00
Fixing issue with newlines after the data in -r mode
This commit is contained in:
@@ -309,6 +309,8 @@ def _feedTargetsDict(reqFile, addedTargetUrls):
|
|||||||
elif key not in (HTTPHEADER.PROXY_CONNECTION, HTTPHEADER.CONNECTION):
|
elif key not in (HTTPHEADER.PROXY_CONNECTION, HTTPHEADER.CONNECTION):
|
||||||
conf.httpHeaders.append((getUnicode(key), getUnicode(value)))
|
conf.httpHeaders.append((getUnicode(key), getUnicode(value)))
|
||||||
|
|
||||||
|
data = data.rstrip("\r\n") if data else data
|
||||||
|
|
||||||
if getPostReq and (params or cookie):
|
if getPostReq and (params or cookie):
|
||||||
if not port and isinstance(scheme, basestring) and scheme.lower() == "https":
|
if not port and isinstance(scheme, basestring) and scheme.lower() == "https":
|
||||||
port = "443"
|
port = "443"
|
||||||
|
|||||||
Reference in New Issue
Block a user