summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Atkin <eatkin@certusllc.us>2020-05-28 13:05:26 -0600
committerEric Atkin <eatkin@certusllc.us>2020-05-28 18:22:31 -0600
commit942c6c07a643d8f2253b190882fae72aba3f0ea8 (patch)
tree199c71bc0f2ab77324ef24aaaba065ac660b8694 /src
parent412fadefabdddda7481fba1bc86958d2f3d10631 (diff)
downloadpyramid-942c6c07a643d8f2253b190882fae72aba3f0ea8.tar.gz
pyramid-942c6c07a643d8f2253b190882fae72aba3f0ea8.tar.bz2
pyramid-942c6c07a643d8f2253b190882fae72aba3f0ea8.zip
cur_domain is effectively equivalent to '.' + cur_domain and therefore negates the effect of wild_domain
Diffstat (limited to 'src')
-rw-r--r--src/pyramid/authentication.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pyramid/authentication.py b/src/pyramid/authentication.py
index 47570d5fc..1bddc1ff3 100644
--- a/src/pyramid/authentication.py
+++ b/src/pyramid/authentication.py
@@ -1035,8 +1035,8 @@ class AuthTktCookieHelper:
domains.append('.' + cur_domain.split('.', 1)[1])
else:
domains.append(None)
- domains.append(cur_domain)
if self.wild_domain:
+ domains.append(cur_domain)
domains.append('.' + cur_domain)
profile = self.cookie_profile(request)