diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-07-07 18:10:17 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2023-07-07 19:35:24 +0200 |
commit | dca0d8427e42e9a498b2c88b85660fef19d8fd1a (patch) | |
tree | fe50fa15fb827de3e76365fdb0f2c9dc5a28f942 /app | |
parent | b10c974ba1952c545acff505bfd36feb0c60b000 (diff) |
Fix crash in admin interface when viewing a remote user with verified links (#25796)
Diffstat (limited to 'app')
-rw-r--r-- | app/lib/text_formatter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/text_formatter.rb b/app/lib/text_formatter.rb index cdf8a48f763..e51266a08ad 100644 --- a/app/lib/text_formatter.rb +++ b/app/lib/text_formatter.rb @@ -60,7 +60,7 @@ class TextFormatter suffix = url[prefix.length + 30..-1] cutoff = url[prefix.length..-1].length > 30 - <<~HTML.squish + <<~HTML.squish.html_safe # rubocop:disable Rails/OutputSafety <a href="#{h(url)}" target="_blank" rel="#{rel.join(' ')}"><span class="invisible">#{h(prefix)}</span><span class="#{cutoff ? 'ellipsis' : ''}">#{h(display_url)}</span><span class="invisible">#{h(suffix)}</span></a> HTML rescue Addressable::URI::InvalidURIError, IDN::Idna::IdnaError |