X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/644220884100abdac9be5afdfeea7d94cb774c97..1654b3d407feefbabd2da99b754dd28698ca6948:/app/controllers/user_preference_controller.rb diff --git a/app/controllers/user_preference_controller.rb b/app/controllers/user_preference_controller.rb index b07f4ecc5..59573047a 100644 --- a/app/controllers/user_preference_controller.rb +++ b/app/controllers/user_preference_controller.rb @@ -52,7 +52,7 @@ class UserPreferenceController < ApplicationController # update the entire set of preferences def update - do + begin p = XML::Parser.string(request.raw_post) rescue LibXML::XML::Error, ArgumentError => ex raise OSM::APIBadXMLError.new("preferences", xml, ex.message)