]> git.openstreetmap.org Git - rails.git/commitdiff
Strip illegal characters from member roles in AMF uploads
authorTom Hughes <tom@compton.nu>
Sun, 15 Jun 2014 14:50:31 +0000 (15:50 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 15 Jun 2014 14:50:31 +0000 (15:50 +0100)
Fixes #758

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