From f2bbac3f9fb37f6f870f25362e140d647d60caf5 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 cdf8a48f76..e51266a08a 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