]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/amf_controller.rb
Strip illegal characters from member roles in AMF uploads
[rails.git] / app / controllers / amf_controller.rb
index 13372273c2eba0f940203bee76ff8964e2f3d279..5e57fde5bf191aee5c8fd546cddb8a0056c5d355 100644 (file)
@@ -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