X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/76708eefcffb6b451ce9c275db4bcaf23690f69d..231bdf66cdc8239c37e1536be4fb52ce275219e3:/app/models/changeset.rb diff --git a/app/models/changeset.rb b/app/models/changeset.rb index 31d927e9a..d420f537a 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -53,8 +53,7 @@ class Changeset < ActiveRecord::Base def self.from_xml(xml, create=false) begin - p = XML::Parser.new - p.string = xml + p = XML::Parser.string(xml) doc = p.parse cs = Changeset.new