Reject referers that do not include an absolute path

This commit is contained in:
Tom Hughes 2021-03-16 11:06:18 +00:00
parent 7967c20673
commit 93b8c47c8f

View file

@ -393,6 +393,8 @@ class ApplicationController < ActionController::Base
referer = nil
end
referer = nil if referer&.path&.first != "/"
referer.to_s
end
end