mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Avoid cookie overflows by truncating the referer we store in flash
This commit is contained in:
@@ -40,7 +40,9 @@ class TopicsController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
flash["referer"] ||= request.referer
|
if request.referer
|
||||||
|
flash["referer"] ||= request.referer[0..255]
|
||||||
|
end
|
||||||
|
|
||||||
# We'd like to migrate the wordpress feed to another url. This keeps up backwards compatibility with
|
# We'd like to migrate the wordpress feed to another url. This keeps up backwards compatibility with
|
||||||
# existing installs.
|
# existing installs.
|
||||||
|
|||||||
Reference in New Issue
Block a user