Trivial update (drei nagging)

This commit is contained in:
Miroslav Stampar 2020-12-18 12:01:49 +01:00
parent eeffcfe1b6
commit 9c95445723
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ from lib.core.enums import OS
from thirdparty.six import unichr as _unichr from thirdparty.six import unichr as _unichr
# sqlmap version (<major>.<minor>.<month>.<monthly commit>) # sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.4.12.27" VERSION = "1.4.12.28"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

View File

@ -71,7 +71,7 @@ class MultipartPostHandler(_urllib.request.BaseHandler):
# NOTE: https://github.com/sqlmapproject/sqlmap/issues/4235 # NOTE: https://github.com/sqlmapproject/sqlmap/issues/4235
if request.data: 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) 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"))