Use explicit to_unsafe_h method when converting parameters to a hash
[rails.git] / app / controllers / application_controller.rb
index 14490488507bc5775924d8c2e0f93a7daccf548f..89636aaa8be9c637a4e8441ec4530496073cf614 100644 (file)
@@ -74,7 +74,7 @@ class ApplicationController < ActionController::Base
     if request.cookies["_osm_session"].to_s == ""
       if params[:cookie_test].nil?
         session[:cookie_test] = true
-        redirect_to Hash[params].merge(:cookie_test => "true")
+        redirect_to params.to_unsafe_h.merge(:cookie_test => "true")
         false
       else
         flash.now[:warning] = t "application.require_cookies.cookies_needed"