diff --git a/time/apply.cgi b/time/apply.cgi index 358bb2706..d9397a82f 100755 --- a/time/apply.cgi +++ b/time/apply.cgi @@ -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("
".&html_escape($err)."
") if ($err); # Save settings in module config &lock_file($module_config_file); diff --git a/time/time-lib.pl b/time/time-lib.pl index 9ac320af8..dd4d6b254 100755 --- a/time/time-lib.pl +++ b/time/time-lib.pl @@ -52,7 +52,7 @@ else { } if ($? && $config{'ntp_only'}) { # error using ntp, but nothing else is allowed - return &text('error_entp', "$out"); + return &text('error_entp', "$out"); } elsif ($?) { # error using ntp. use timeservice