Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e08c8f2 commit f89e94fCopy full SHA for f89e94f
1 file changed
lib/request/basic.py
@@ -95,8 +95,7 @@ def title(self):
95
kb.mergeCookies = not _ or _[0] in ("y", "Y")
96
97
if kb.mergeCookies:
98
- _ = lambda x: re.sub("(?i)%s=[^%s]+" % (cookie.name, conf.cookieDel or DEFAULT_COOKIE_DELIMITER), "%s=%s" % (cookie.name, getUnicode(cookie.value)), x)
99
- headers[HTTP_HEADER.COOKIE] = _(headers[HTTP_HEADER.COOKIE])
+ headers[HTTP_HEADER.COOKIE] = re.sub(r"(?i)\b%s=[^%s]+" % (re.escape(cookie.name), conf.cookieDel or DEFAULT_COOKIE_DELIMITER), "%s=%s" % (cookie.name, getUnicode(cookie.value)), headers[HTTP_HEADER.COOKIE])
100
101
if PLACE.COOKIE in conf.parameters:
102
conf.parameters[PLACE.COOKIE] = _(conf.parameters[PLACE.COOKIE])
0 commit comments