]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/changeset_controller.rb
Ensure closed changesets appear in the feed, and update some misleading comments.
[rails.git] / app / controllers / changeset_controller.rb
index 09bad34bc07f3a19f69afd6ef24a7ccdaac7aa00..77ca20fbea9a2d1012ddf0c80b7db7eaf6d03666 100644 (file)
@@ -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