X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e17b89e89fa932673f7dc2cf5a2fd3437ec0eda6..060230fb94f02f0dd1f6f8836138ec1b18716f17:/app/controllers/changeset_controller.rb diff --git a/app/controllers/changeset_controller.rb b/app/controllers/changeset_controller.rb index 09bad34bc..77ca20fbe 100644 --- a/app/controllers/changeset_controller.rb +++ b/app/controllers/changeset_controller.rb @@ -83,7 +83,7 @@ class ChangesetController < ApplicationController # the request is in pseudo-osm format... this is kind-of an # abuse, maybe should change to some other format? - doc = XML::Parser.string(request.raw_post).parse + doc = XML::Parser.string(request.raw_post, :options => XML::Parser::Options::NOERROR).parse doc.find("//osm/node").each do |n| lon << n["lon"].to_f * GeoRecord::SCALE lat << n["lat"].to_f * GeoRecord::SCALE @@ -248,7 +248,7 @@ class ChangesetController < ApplicationController end ## - # list edits (open changesets) in reverse chronological order + # list non-empty changesets in reverse chronological order def list if request.format == :atom && params[:max_id] redirect_to url_for(params.merge(:max_id => nil)), :status => :moved_permanently