From: Raymond Hettinger Date: Sat, 5 Feb 2005 01:33:16 +0000 (+0000) Subject: SF patch #1116583: NameError in cookielib domain check X-Git-Tag: v2.4.1c1~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=339870121926f56294d8ccbca381d5d29c07cac0;p=thirdparty%2FPython%2Fcpython.git SF patch #1116583: NameError in cookielib domain check --- diff --git a/Lib/cookielib.py b/Lib/cookielib.py index a125b2198675..86479f864ada 100644 --- a/Lib/cookielib.py +++ b/Lib/cookielib.py @@ -1134,11 +1134,10 @@ class DefaultCookiePolicy(CookiePolicy): # having to load lots of MSIE cookie files unless necessary. req_host, erhn = eff_request_host(request) if not req_host.startswith("."): - dotted_req_host = "."+req_host + req_host = "."+req_host if not erhn.startswith("."): - dotted_erhn = "."+erhn - if not (dotted_req_host.endswith(domain) or - dotted_erhn.endswith(domain)): + erhn = "."+erhn + if not (req_host.endswith(domain) or erhn.endswith(domain)): #debug(" request domain %s does not match cookie domain %s", # req_host, domain) return False