Reject referers that do not include an absolute path
This commit is contained in:
parent
7967c20673
commit
93b8c47c8f
1 changed files with 2 additions and 0 deletions
|
@ -393,6 +393,8 @@ class ApplicationController < ActionController::Base
|
|||
referer = nil
|
||||
end
|
||||
|
||||
referer = nil if referer&.path&.first != "/"
|
||||
|
||||
referer.to_s
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue