]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Merge remote-tracking branch 'upstream/pull/3192'
[rails.git] / app / controllers / application_controller.rb
index c3eb1ad85969ad8a3fce2d25c60e35045000c55a..d571535d356ef4db7646df3b618c816b2b6f4574 100644 (file)
@@ -393,6 +393,8 @@ class ApplicationController < ActionController::Base
       referer = nil
     end
 
+    referer = nil if referer&.path&.first != "/"
+
     referer.to_s
   end
 end