summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_ntpd.php
diff options
context:
space:
mode:
authornagyrobi <robreg@zsurob.hu>2014-05-29 14:20:39 +0200
committernagyrobi <robreg@zsurob.hu>2014-05-29 14:20:39 +0200
commit4e6b0a0e084d1637fa23e34b3545096ac30e009f (patch)
tree81492bcd58f0a8aecc6b7187c78c42e7b36c113e /usr/local/www/services_ntpd.php
parent6e73977bd7a542e703d1b05587c434880ef727a9 (diff)
downloadpfsense-4e6b0a0e084d1637fa23e34b3545096ac30e009f.zip
pfsense-4e6b0a0e084d1637fa23e34b3545096ac30e009f.tar.gz
Update services_ntpd.php
Add validation for the case of no server specified, fall back to pool.ntp.org
Diffstat (limited to 'usr/local/www/services_ntpd.php')
-rw-r--r--usr/local/www/services_ntpd.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/services_ntpd.php b/usr/local/www/services_ntpd.php
index f3b8c72..d11efc8 100644
--- a/usr/local/www/services_ntpd.php
+++ b/usr/local/www/services_ntpd.php
@@ -83,6 +83,8 @@ if ($_POST) {
if (!empty($_POST["servselect{$i}"])) $config['ntpd']['noselect'].= "{$tserver} ";
}
}
+ if (trim($timeservers) == "")
+ $timeservers = "pool.ntp.org";
$config['system']['timeservers'] = trim($timeservers);
if (!empty($_POST['ntporphan']) && ($_POST['ntporphan'] < 17) && ($_POST['ntporphan'] != '12'))
OpenPOWER on IntegriCloud