diff options
author | Phil Davis <phil.davis@inf.org> | 2016-02-21 18:42:26 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-02-21 18:42:26 +0545 |
commit | bdfe939c4e1d30ba0d10bd6b9e995f1129bb483e (patch) | |
tree | 0c1252af6725c0f410e9c13111c0ab3b6554602f /src/usr/local/www/system.php | |
parent | 656cf2ac91c1b0b8a875e6a9b693c173cb68ef9a (diff) | |
download | pfsense-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/local/www/system.php')
-rw-r--r-- | src/usr/local/www/system.php | 4 |
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 { |