mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-16 17:05:09 -04:00
FIX: Avoid cookie overflows by truncating the referer we store in flash
This commit is contained in:
parent
85320f919b
commit
53ca51654d
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue