Some little fix for html_escape

This commit is contained in:
Mike Steinmetz
2020-04-24 11:23:02 +02:00
parent 1de9374711
commit 61b8c47889
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ if ($in{'action'} eq $text{'action_sync'}) {
$access{'ntp'} || &error($text{'acl_nontp'});
$in{'timeserver'} =~ /\S/ || &error($text{'error_etimeserver'});
$err = &sync_time($in{'timeserver'}, $in{'hardware'});
&error(&html_escape($err)) if ($err);
&error("<pre>".&html_escape($err)."</pre>") if ($err);
# Save settings in module config
&lock_file($module_config_file);

View File

@ -52,7 +52,7 @@ else {
}
if ($? && $config{'ntp_only'}) {
# error using ntp, but nothing else is allowed
return &text('error_entp', "<tt>$out</tt>");
return &text('error_entp', "$out");
}
elsif ($?) {
# error using ntp. use timeservice