If the MAC address is set then validate it is a Mac address.

This commit is contained in:
Mark Crane 2015-04-06 23:39:19 +00:00
parent 689d5d39ab
commit 8afee33689
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ openlog("fusion-provisioning", LOG_PID | LOG_PERROR, LOG_LOCAL0);
}
//prepare the mac address
if (!isset($_GET['user_id'])) {
if (isset($_REQUEST['mac'])) {
//normalize the mac address to lower case
$mac = strtolower($mac);
//replace all non hexadecimal values and validate the mac address