]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_preference_controller.rb
Update to iD v2.0.1
[rails.git] / app / controllers / user_preference_controller.rb
index 78ab45308e874a9d7e56cad7efab1c6d63ca32c4..bf9bab213296f1ad4bc3324b480ad89f9a4895cd 100644 (file)
@@ -39,7 +39,7 @@ class UserPreferenceController < ApplicationController
 
     new_preferences = {}
 
-    doc = XML::Parser.string(request.raw_post).parse
+    doc = XML::Parser.string(request.raw_post, :options => XML::Parser::Options::NOERROR).parse
 
     doc.find("//preferences/preference").each do |pt|
       if preference = old_preferences.delete(pt["k"])