mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
Don't use referrer as a fallback in VDestination.
Since the referrer is not included in cache keys for pagecache or Akamai, this can result in weird stuff getting cached and causing downstream users to get redirected after login/registration to unexpected destinations.
This commit is contained in:
@@ -1795,7 +1795,7 @@ class VDestination(Validator):
|
||||
|
||||
def run(self, dest):
|
||||
if not dest:
|
||||
dest = request.referer or self.default or "/"
|
||||
dest = self.default or "/"
|
||||
|
||||
ld = dest.lower()
|
||||
if ld.startswith(('/', 'http://', 'http://')):
|
||||
|
||||
Reference in New Issue
Block a user