X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9fb8f5a84bfa96a299dfd1457c185181f15835d8..35be1120925e43b6c2aaf470a13aebae25cddb51:/app/controllers/changeset_controller.rb?ds=sidebyside diff --git a/app/controllers/changeset_controller.rb b/app/controllers/changeset_controller.rb index 2a8fec95e..38effa14c 100644 --- a/app/controllers/changeset_controller.rb +++ b/app/controllers/changeset_controller.rb @@ -254,7 +254,7 @@ class ChangesetController < ApplicationController # list edits (open changesets) in reverse chronological order def list if request.format == :atom && params[:max_id] - redirect_to params.merge(:max_id => nil), :status => :moved_permanently + redirect_to url_for(params.merge(:max_id => nil)), :status => :moved_permanently return end @@ -266,7 +266,7 @@ class ChangesetController < ApplicationController end end - if (params[:friends] || params[:nearby]) && !@user && request.format == :html + if (params[:friends] || params[:nearby]) && !@user require_user return end @@ -442,6 +442,8 @@ class ChangesetController < ApplicationController respond_to do |format| format.rss end + rescue OSM::APIBadUserInput + render :text => "", :status => :bad_request end private