X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/721dd9c27d299455b9159457a095716f797389f1..c321c026f265c6c2b25a3d564232a12f6ca48c0a:/app/controllers/user_preference_controller.rb?ds=sidebyside diff --git a/app/controllers/user_preference_controller.rb b/app/controllers/user_preference_controller.rb index 3b56c257b..68ea88eea 100644 --- a/app/controllers/user_preference_controller.rb +++ b/app/controllers/user_preference_controller.rb @@ -52,8 +52,7 @@ class UserPreferenceController < ApplicationController # update the entire set of preferences def update - p = XML::Parser.new - p.string = request.raw_post + p = XML::Parser.string(request.raw_post) doc = p.parse prefs = []