diff options
author | nagyrobi <robreg@zsurob.hu> | 2014-05-29 14:20:39 +0200 |
---|---|---|
committer | nagyrobi <robreg@zsurob.hu> | 2014-05-29 14:20:39 +0200 |
commit | 4e6b0a0e084d1637fa23e34b3545096ac30e009f (patch) | |
tree | 81492bcd58f0a8aecc6b7187c78c42e7b36c113e | |
parent | 6e73977bd7a542e703d1b05587c434880ef727a9 (diff) | |
download | pfsense-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
-rw-r--r-- | usr/local/www/services_ntpd.php | 2 |
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')) |