mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 02:45:40 +08:00
FIX: Avoid cookie overflows by truncating the referer we store in flash
This commit is contained in:
parent
85320f919b
commit
53ca51654d
@ -40,7 +40,9 @@ class TopicsController < ApplicationController
|
||||
end
|
||||
|
||||
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
|
||||
# existing installs.
|
||||
|
Loading…
x
Reference in New Issue
Block a user