SF patch #1116583: NameError in cookielib domain check
This commit is contained in:
parent
ab630507de
commit
bab4143348
|
@ -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
|
||||
|
|
|
@ -399,6 +399,7 @@ Luke Mewburn
|
|||
Mike Meyer
|
||||
Steven Miale
|
||||
Trent Mick
|
||||
Chad Miller
|
||||
Roman Milner
|
||||
Dom Mitchell
|
||||
Doug Moen
|
||||
|
|
Loading…
Reference in New Issue