[openstreetmap/openstreetmap-website] Html safe (PR #3803)

Andy Allan notifications at github.com
Thu Nov 17 12:26:35 UTC 2022


Following on from #2898 and #2919, and using the flash technique from #3232 we can get rid of more uses of `html_safe` in our views. This takes care of the user suspended flash message, and a link in the browse sidebar.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/3803

-- Commit Summary --

  * Reconfigure the suspended flash message to avoid html_safe
  * Create a second title_user translation, to avoid using html_safe

-- File Changes --

    M app/controllers/sessions_controller.rb (2)
    M app/controllers/users_controller.rb (2)
    M app/views/changesets/history.html.erb (2)
    A app/views/sessions/_suspended_flash.html.erb (2)
    M config/locales/en.yml (6)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/3803.patch
https://github.com/openstreetmap/openstreetmap-website/pull/3803.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3803
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/3803 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20221117/d4b24dc5/attachment.htm>


More information about the rails-dev mailing list