Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 24d95ab

Browse files
committed
Fixes #1624
1 parent 3454e35 commit 24d95ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/request/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def title(self):
103103
kb.mergeCookies = not _ or _[0] in ("y", "Y")
104104

105105
if kb.mergeCookies and kb.injection.place != PLACE.COOKIE:
106-
_ = lambda x: re.sub(r"(?i)\b%s=[^%s]+" % (re.escape(cookie.name), conf.cookieDel or DEFAULT_COOKIE_DELIMITER), "%s=%s" % (cookie.name, getUnicode(cookie.value)), x)
106+
_ = lambda x: re.sub(r"(?i)\b%s=[^%s]+" % (re.escape(cookie.name), conf.cookieDel or DEFAULT_COOKIE_DELIMITER), ("%s=%s" % (cookie.name, getUnicode(cookie.value))).replace('\\', r'\\'), x)
107107
headers[HTTP_HEADER.COOKIE] = _(headers[HTTP_HEADER.COOKIE])
108108

109109
if PLACE.COOKIE in conf.parameters:

0 commit comments

Comments
 (0)