Strip illegal characters from member roles in AMF uploads, part 2
authorTom Hughes <tom@compton.nu>
Sun, 15 Jun 2014 14:55:30 +0000 (15:55 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 15 Jun 2014 14:55:30 +0000 (15:55 +0100)
Fixes #758

app/controllers/amf_controller.rb

index 5e57fde5bf191aee5c8fd546cddb8a0056c5d355..57eb28237675d4502cf3c2e58e36a88286371e66 100644 (file)
@@ -551,7 +551,7 @@ class AmfController < ApplicationController
             mid = renumberedways[mid] if m[0] == 'Way'
           end
           if mid
-            typedmembers << [m[0], mid, strip_non_xml_chars(m[2])]
+            typedmembers << [m[0], mid, m[2].delete("\000-\037", "^\011\012\015")]
           end
         end