]> cat aescling's git repositories - mastodon.git/commit
Fix brakeman warning (#15870)
authorClaire <claire.github-309c@sitedethib.com>
Fri, 19 Mar 2021 22:48:59 +0000 (23:48 +0100)
committerGitHub <noreply@github.com>
Fri, 19 Mar 2021 22:48:59 +0000 (23:48 +0100)
commit876840e9efceb4cde0af92e2a0f5d7afe906b5e9
treeb4fcc45528233c6dd77e445add41890be5c89193
parent051efed5edd544b4f88c63a1038274ae2db30038
Fix brakeman warning (#15870)

As far as I understand, the brakeman warning was a false-positive as
`content_tag` properly escapes untrusted HTML. Furthermore, the interpolated
string values are built from the “username” part of accounts, which is
restricted to a small subset of ASCII that precludes any XML entity or HTML
code.

This proposed change should be functionally equivalent to the current code,
however it is slightly more robust, it's more idiomatic, and Brakeman will
stop complaining about it.
app/views/admin/action_logs/_action_log.html.haml
app/views/admin/reports/_action_log.html.haml
config/locales/en.yml