From 6fe824bd0ba20d997bb7d1b8627d79e209b61d03 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 15 Jun 2014 15:55:30 +0100 Subject: [PATCH] Strip illegal characters from member roles in AMF uploads, part 2 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 5e57fde5b..57eb28237 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, strip_non_xml_chars(m[2])] + typedmembers << [m[0], mid, m[2].delete("\000-\037", "^\011\012\015")] end end -- 2.43.2