Skip to content

Commit

Permalink
Fix HTML error printing properly
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Sep 14, 2023
1 parent 1c5fc12 commit 095af28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions authentic.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1579,11 +1579,11 @@ sub theme_error
&header($text{'error'}, "") if (!$main_header);
my $error_what = ($main::whatfailed ? "$main::whatfailed : " : "");
my $error_message = join(", ", @err_msg);
my $main_web = $main::webmin_script_type eq 'web';
$err_caller = " " . &ui_help($err_caller)
if ($err_caller);
if ($err_caller && $main_web);
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');
$error = &html_strip($error_what . $error_message . $err_caller) if (!$main_web);
my $get_error_stack = sub {
# Show call stack
my $error_stack = "";
Expand Down

0 comments on commit 095af28

Please sign in to comment.