From 5114308d0df57f65261b421c4385582b9e15a002 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Wed, 4 Oct 2023 00:51:49 +0300 Subject: [PATCH] Fix to never double escape HTML in display --- ui-lib.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-lib.pl b/ui-lib.pl index ed009a962..e2fe3b27e 100755 --- a/ui-lib.pl +++ b/ui-lib.pl @@ -2804,8 +2804,8 @@ if (defined(&theme_ui_details)) { my $rv; if (!$c->{'html'}) { - $c->{'title'} = &html_escape($c->{'title'}); - $c->{'content'} = &html_escape($c->{'content'}); + $c->{'title'} = &html_escape($c->{'title'}, 1); + $c->{'content'} = &html_escape($c->{'content'}, 1); } $c->{'class'} = " class=\"@{["e_escape($c->{'class'})]}\"" if($c->{'class'}); $o = ' open' if ($o);