diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-03-29 17:17:42 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-03-29 17:17:42 +0000 |
commit | cfc5a090941f78c6e88b44f5c898ce014b461a91 (patch) | |
tree | c90fe3ce52f1cd2a8abbae56cba6d0b636563d9a | |
parent | c229a1d824eee224e8777eaecaf25aa743752ad9 (diff) | |
download | pfsense-cfc5a090941f78c6e88b44f5c898ce014b461a91.zip pfsense-cfc5a090941f78c6e88b44f5c898ce014b461a91.tar.gz |
Back out last commit, it removes the hostname check and is not the correct fix.
Ryan will be investigating the issue further since he added this feature.
-rwxr-xr-x | usr/local/www/services_dhcp_edit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php index 11eb283..238456f 100755 --- a/usr/local/www/services_dhcp_edit.php +++ b/usr/local/www/services_dhcp_edit.php @@ -91,8 +91,8 @@ if ($_POST) { if (isset($id) && ($a_maps[$id]) && ($a_maps[$id] === $mapent)) continue; - if (($mapent['mac'] == $_POST['mac']) || ($_POST['ipaddr'] && (ip2long($mapent['ipaddr']) == ip2long($_POST['ipaddr'])))) { - $input_errors[] = "This IP or MAC address already exists."; + if (($mapent['hostname'] == $_POST['hostname']) || ($mapent['mac'] == $_POST['mac']) || ($_POST['ipaddr'] && (ip2long($mapent['ipaddr']) == ip2long($_POST['ipaddr'])))) { + $input_errors[] = "This Hostname, IP or MAC address already exists."; break; } } |