summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorIndividual IT Services <ict.projects@nepal.inf.org>2013-08-13 04:14:36 -0700
committerRenato Botelho <garga@FreeBSD.org>2013-08-13 17:56:10 -0300
commit4be0c837bafcc46d66240114e8b7654c14ed85c9 (patch)
treeccc0facff0f79e31f8d54c10410018e2feb2c39b /usr/local/www
parent9a85884bc5fa4fb731a31a83a12eb676100ae968 (diff)
downloadpfsense-4be0c837bafcc46d66240114e8b7654c14ed85c9.zip
pfsense-4be0c837bafcc46d66240114e8b7654c14ed85c9.tar.gz
Fix check for existing IP Address in DHCP mapping
Even the Error message says: "This Hostname, IP or MAC address already exists." the IP Address was not checked if it already was given to a client as static mapped Conflicts: usr/local/www/services_dhcp_edit.php
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/services_dhcp_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php
index 81a6cfd..f318bc4 100755
--- a/usr/local/www/services_dhcp_edit.php
+++ b/usr/local/www/services_dhcp_edit.php
@@ -173,7 +173,7 @@ if ($_POST) {
if (isset($id) && ($a_maps[$id]) && ($a_maps[$id] === $mapent))
continue;
- if ((($mapent['hostname'] == $_POST['hostname']) && $mapent['hostname']) || ($mapent['mac'] == $_POST['mac'])) {
+ if ((($mapent['hostname'] == $_POST['hostname']) && $mapent['hostname']) || (($mapent['mac'] == $_POST['mac']) && $mapent['mac']) || (($mapent['ipaddr'] == $_POST['ipaddr']) && $mapent['ipaddr'])) {
$input_errors[] = gettext("This Hostname, IP or MAC address already exists.");
break;
}
OpenPOWER on IntegriCloud