summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Furneaux <mark@furneaux.ca>2016-02-21 00:08:22 -0500
committerMark Furneaux <mark@furneaux.ca>2016-02-21 00:08:22 -0500
commitc25e42c8e970593ecbd5ef0b2a81379de66113d7 (patch)
tree5d5df45efaeb673c78981839f00cbe785834b5cc
parent656cf2ac91c1b0b8a875e6a9b693c173cb68ef9a (diff)
downloadpfsense-c25e42c8e970593ecbd5ef0b2a81379de66113d7.zip
pfsense-c25e42c8e970593ecbd5ef0b2a81379de66113d7.tar.gz
Fix regression on general setup page preventing save with blank DNS servers
Introduced in f700dc9
-rw-r--r--src/usr/local/www/system.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/system.php b/src/usr/local/www/system.php
index 8c00c11..a3ad0a5 100644
--- a/src/usr/local/www/system.php
+++ b/src/usr/local/www/system.php
@@ -201,7 +201,7 @@ if ($_POST) {
}
}
- if (count($dnslist) != count(array_unique($dnslist))) {
+ if (count(array_filter($dnslist)) != count(array_unique(array_filter($dnslist)))) {
$input_errors[] = gettext('Each configured DNS server must have a unique IP address. Remove the duplicated IP.');
}
OpenPOWER on IntegriCloud