X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4ef7b2c651e20f147719f3ff0bec0dc6bfd7ea2c..80d27a7fae408e22300723b746666540da0360b8:/app/controllers/user_controller.rb?ds=sidebyside diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 2ff9646e6..430051c17 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -480,9 +480,11 @@ class UserController < ApplicationController redirect_to url_for(:status => params[:status], :ip => params[:ip], :page => params[:page]) else + @params = params.permit(:status, :ip) + conditions = {} - conditions[:status] = params[:status] if params[:status] - conditions[:creation_ip] = params[:ip] if params[:ip] + conditions[:status] = @params[:status] if @params[:status] + conditions[:creation_ip] = @params[:ip] if @params[:ip] @user_pages, @users = paginate(:users, :conditions => conditions,