From 4cd7f5ad0d982260e0ef5e9b0d9781d4ae05f295 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 15 Jun 2014 15:50:31 +0100 Subject: [PATCH] Strip illegal characters from member roles in AMF uploads Fixes #758 --- app/controllers/amf_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5