From 61b8c478894c4994d1c870b85c28f87bebd7c3e0 Mon Sep 17 00:00:00 2001 From: Mike Steinmetz Date: Fri, 24 Apr 2020 11:23:02 +0200 Subject: [PATCH] Some little fix for html_escape --- time/apply.cgi | 2 +- time/time-lib.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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