From 8afee33689beaa5b7661f3d146a76ffd6df9ea64 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Mon, 6 Apr 2015 23:39:19 +0000 Subject: [PATCH] If the MAC address is set then validate it is a Mac address. --- app/provision/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/provision/index.php b/app/provision/index.php index be1bc0b1fc..c2f825e0e9 100644 --- a/app/provision/index.php +++ b/app/provision/index.php @@ -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