]> source.dussan.org Git - redmine.git/commitdiff
Don't generate URL from params.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 14 Jul 2016 07:43:34 +0000 (07:43 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 14 Jul 2016 07:43:34 +0000 (07:43 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@15659 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/application_controller.rb

index 6768d1647ee9912189ebd1a887aa5cb7732371b1..848965ce13ed828a791991270e39c42622a0edd8 100644 (file)
@@ -213,7 +213,7 @@ class ApplicationController < ActionController::Base
     if !User.current.logged?
       # Extract only the basic url parameters on non-GET requests
       if request.get?
-        url = url_for(params)
+        url = request.original_url
       else
         url = url_for(:controller => params[:controller], :action => params[:action], :id => params[:id], :project_id => params[:project_id])
       end