From 1c5fc126b872ae65ae8fd69ca2a91c70fe76fdff Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Fri, 15 Sep 2023 00:51:38 +0300 Subject: [PATCH] Fix not to remove HTML from error message if in UI mode --- authentic.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/authentic.pl b/authentic.pl index 5e8a5dd7c..553c3620d 100644 --- a/authentic.pl +++ b/authentic.pl @@ -1581,7 +1581,9 @@ sub theme_error my $error_message = join(", ", @err_msg); $err_caller = " " . &ui_help($err_caller) if ($err_caller); - my $error = html_escape(html_strip(($error_what . $error_message))) . $err_caller; + my $error = $error_what . $error_message . $err_caller; + $error = html_escape(html_strip(($error_what . $error_message))) . $err_caller + if ($main::webmin_script_type ne 'web'); my $get_error_stack = sub { # Show call stack my $error_stack = "";