X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/7725cd59b41a622a634a447d33fbda738a472748..f464e2a6e9679636d6ae8dbe7b3448cc4cab334d:/app/models/trace.rb?ds=sidebyside diff --git a/app/models/trace.rb b/app/models/trace.rb index 85c0244d5..47e5c38b7 100644 --- a/app/models/trace.rb +++ b/app/models/trace.rb @@ -174,7 +174,7 @@ class Trace < ActiveRecord::Base # Read in xml as text and return it's Node object representation def self.from_xml(xml, create = false) - p = XML::Parser.string(xml) + p = XML::Parser.string(xml, :options => XML::Parser::Options::NOERROR) doc = p.parse doc.find("//osm/gpx_file").each do |pt|