From b6d173b4598db3e4c4b8f78f100d39dcb5e71f31 Mon Sep 17 00:00:00 2001 From: Claire Date: Fri, 7 Jul 2023 18:10:17 +0200 Subject: [PATCH] Fix crash in admin interface when viewing a remote user with verified links (#25796) --- app/lib/text_formatter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/text_formatter.rb b/app/lib/text_formatter.rb index 3570632dd..04b34cf19 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 #{h(display_url)} HTML rescue Addressable::URI::InvalidURIError, IDN::Idna::IdnaError