summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-02-21 18:42:26 +0545
committerPhil Davis <phil.davis@inf.org>2016-02-21 18:42:26 +0545
commitbdfe939c4e1d30ba0d10bd6b9e995f1129bb483e (patch)
tree0c1252af6725c0f410e9c13111c0ab3b6554602f /src/usr
parent656cf2ac91c1b0b8a875e6a9b693c173cb68ef9a (diff)
downloadpfsense-bdfe939c4e1d30ba0d10bd6b9e995f1129bb483e.zip
pfsense-bdfe939c4e1d30ba0d10bd6b9e995f1129bb483e.tar.gz
Fix #5916 Do not complain about duplicated blank DNS server entries
Reported by redmine https://redmine.pfsense.org/issues/5916
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/local/www/system.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/local/www/system.php b/src/usr/local/www/system.php
index 8c00c11..dcbcedb 100644
--- a/src/usr/local/www/system.php
+++ b/src/usr/local/www/system.php
@@ -180,7 +180,9 @@ if ($_POST) {
for ($dnscounter=1; $dnscounter<5; $dnscounter++) {
$dnsname="dns{$dnscounter}";
$dnsgwname="dns{$dnscounter}gw";
- $dnslist[] = $_POST[$dnsname];
+ if ($_POST[$dnsname]) {
+ $dnslist[] = $_POST[$dnsname];
+ }
if (($_POST[$dnsname] && !is_ipaddr($_POST[$dnsname]))) {
$input_errors[] = sprintf(gettext("A valid IP address must be specified for DNS server %s."), $dnscounter);
} else {
OpenPOWER on IntegriCloud