If the MAC address is set then validate it is a Mac address.
This commit is contained in:
@@ -54,7 +54,7 @@ openlog("fusion-provisioning", LOG_PID | LOG_PERROR, LOG_LOCAL0);
|
|||||||
}
|
}
|
||||||
|
|
||||||
//prepare the mac address
|
//prepare the mac address
|
||||||
if (!isset($_GET['user_id'])) {
|
if (isset($_REQUEST['mac'])) {
|
||||||
//normalize the mac address to lower case
|
//normalize the mac address to lower case
|
||||||
$mac = strtolower($mac);
|
$mac = strtolower($mac);
|
||||||
//replace all non hexadecimal values and validate the mac address
|
//replace all non hexadecimal values and validate the mac address
|
||||||
|
|||||||
Reference in New Issue
Block a user