From 06296bd25111e7f85ed7b4983a8b68efaf89d11e Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 6 Mar 2016 20:04:45 +0100 Subject: [PATCH] Fixes #1743 --- lib/core/settings.py | 2 +- lib/request/connect.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 7463fa02f..137d22c06 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -20,7 +20,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version and site -VERSION = "1.0.0.13" +VERSION = "1.0.0.14" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev") diff --git a/lib/request/connect.py b/lib/request/connect.py index 26ddaa5e6..c5d2eceb1 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -391,9 +391,10 @@ class Connect(object): for key, value in headers.items(): del headers[key] - headers[unicodeencode(key, kb.pageEncoding)] = unicodeencode(value, kb.pageEncoding) + value = unicodeencode(value, kb.pageEncoding) for char in (r"\r", r"\n"): value = re.sub(r"(%s)([^ \t])" % char, r"\g<1>\t\g<2>", value) + headers[unicodeencode(key, kb.pageEncoding)] = value.strip("\r\n") url = unicodeencode(url) post = unicodeencode(post)