summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorRenato Botelho <garga@pfSense.org>2013-08-13 13:53:22 -0700
committerRenato Botelho <garga@pfSense.org>2013-08-13 13:53:22 -0700
commit7a2f4f584a55811207d8176cbbdda2c90dc5ace5 (patch)
tree3d63bdb1055ed998b02bf952fff4c1416c62c864 /usr/local/www
parent2db93ddbf5c2341f5d76afad892cac4ea5acfee5 (diff)
parentce13cc5f8f661f4ef0d24e237a83d4caccea6a11 (diff)
downloadpfsense-7a2f4f584a55811207d8176cbbdda2c90dc5ace5.zip
pfsense-7a2f4f584a55811207d8176cbbdda2c90dc5ace5.tar.gz
Merge pull request #770 from individual-it/master
Fix check for existing IP Address in DHCP mapping
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/services_dhcp_edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php
index 281d754..5428747 100755
--- a/usr/local/www/services_dhcp_edit.php
+++ b/usr/local/www/services_dhcp_edit.php
@@ -179,7 +179,8 @@ if ($_POST) {
if (isset($id) && ($a_maps[$id]) && ($a_maps[$id] === $mapent))
continue;
- if ((($mapent['hostname'] == $_POST['hostname']) && $mapent['hostname']) || (($mapent['mac'] == $_POST['mac']) && $mapent['mac']) || (($mapent['cid'] == $_POST['cid']) && $mapent['cid'])) {
+ if ((($mapent['hostname'] == $_POST['hostname']) && $mapent['hostname']) || (($mapent['mac'] == $_POST['mac']) && $mapent['mac']) || (($mapent['ipaddr'] == $_POST['ipaddr']) && $mapent['ipaddr'] ) || (($mapent['cid'] == $_POST['cid']) && $mapent['cid'])) {
+
$input_errors[] = gettext("This Hostname, IP, MAC address or Client identifier already exists.");
break;
}
OpenPOWER on IntegriCloud