Don't require the MAC address.
This commit is contained in:
+10
-8
@@ -54,14 +54,16 @@ openlog("fusion-provisioning", LOG_PID | LOG_PERROR, LOG_LOCAL0);
|
|||||||
}
|
}
|
||||||
|
|
||||||
//prepare the mac address
|
//prepare the mac address
|
||||||
//normalize the mac address to lower case
|
if (!isset($_GET['user_id'])) {
|
||||||
$mac = strtolower($mac);
|
//normalize the mac address to lower case
|
||||||
//replace all non hexadecimal values and validate the mac address
|
$mac = strtolower($mac);
|
||||||
$mac = preg_replace("#[^a-fA-F0-9./]#", "", $mac);
|
//replace all non hexadecimal values and validate the mac address
|
||||||
if (strlen($mac) != 12) {
|
$mac = preg_replace("#[^a-fA-F0-9./]#", "", $mac);
|
||||||
echo "invalid mac address";
|
if (strlen($mac) != 12) {
|
||||||
exit;
|
echo "invalid mac address";
|
||||||
}
|
exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//get the domain_name and domain_uuid
|
//get the domain_name and domain_uuid
|
||||||
if ($_SESSION['provision']['http_domain_filter']['text'] == "false") {
|
if ($_SESSION['provision']['http_domain_filter']['text'] == "false") {
|
||||||
|
|||||||
Reference in New Issue
Block a user