[openstreetmap-website] relation roles in amf_controller are not XML-char safe (#758)

Andy Allan notifications at github.com
Sun Jun 15 14:49:09 UTC 2014


The relation roles appear to be passed through to the database without the xml character checks occurring

https://github.com/openstreetmap/openstreetmap-website/blob/d27cc80b438b0943ac532b727b48b6ca6601f990/app/controllers/amf_controller.rb#L554

The `m[2]` likely needs `m[2] = strip_non_xml_chars m[2]` at the same time as tags are checked ( at https://github.com/openstreetmap/openstreetmap-website/blob/d27cc80b438b0943ac532b727b48b6ca6601f990/app/controllers/amf_controller.rb#L530 )

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/758
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20140615/6228598e/attachment.html>


More information about the rails-dev mailing list