From: Tom Hughes Date: Sun, 15 Jun 2014 14:50:31 +0000 (+0100) Subject: Strip illegal characters from member roles in AMF uploads X-Git-Tag: live~4387 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/4cd7f5ad0d982260e0ef5e9b0d9781d4ae05f295?ds=sidebyside Strip illegal characters from member roles in AMF uploads Fixes #758 --- diff --git a/app/controllers/amf_controller.rb b/app/controllers/amf_controller.rb index 13372273c..5e57fde5b 100644 --- a/app/controllers/amf_controller.rb +++ b/app/controllers/amf_controller.rb @@ -551,7 +551,7 @@ class AmfController < ApplicationController mid = renumberedways[mid] if m[0] == 'Way' end if mid - typedmembers << [m[0], mid, m[2]] + typedmembers << [m[0], mid, strip_non_xml_chars(m[2])] end end