summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-02-02 05:56:28 -0200
committerRenato Botelho <garga@FreeBSD.org>2015-02-02 05:56:28 -0200
commite67c5bee46114c343a6b78849a543d58ff88ae5f (patch)
treed479302a5309adcc829ad1d4bb60cd9d2db7abcc /usr
parent2b8353ba39441311612c30e5e7c6e71643b07aa3 (diff)
parent07b379525d8182e73f7fd46f39dcfca9b8e183e0 (diff)
downloadpfsense-e67c5bee46114c343a6b78849a543d58ff88ae5f.zip
pfsense-e67c5bee46114c343a6b78849a543d58ff88ae5f.tar.gz
Merge pull request #1457 from phil-davis/patch-2
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/services_unbound_domainoverride_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_unbound_domainoverride_edit.php b/usr/local/www/services_unbound_domainoverride_edit.php
index b8c37a5..821823b 100644
--- a/usr/local/www/services_unbound_domainoverride_edit.php
+++ b/usr/local/www/services_unbound_domainoverride_edit.php
@@ -86,7 +86,7 @@ if ($_POST) {
if ($_POST['ip']) {
if (strpos($_POST['ip'],'@') !== false) {
$ip_details = explode("@", $_POST['ip']);
- if (!is_ipaddr($ip_details[0]) && !is_port($ip_details[1]))
+ if (!is_ipaddr($ip_details[0]) || !is_port($ip_details[1]))
$input_errors[] = gettext("A valid IP address and port must be specified, for example 192.168.100.10@5353.");
} else if (!is_ipaddr($_POST['ip']))
$input_errors[] = gettext("A valid IP address must be specified, for example 192.168.100.10.");
OpenPOWER on IntegriCloud