From 5d9720c9834a10c339a4b0fd07f85fa889dd28f7 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 20 Sep 2016 16:51:38 -0600 Subject: [PATCH] Update index.php --- app/provision/index.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/provision/index.php b/app/provision/index.php index 7de7dad47d..eb3be7fcfe 100644 --- a/app/provision/index.php +++ b/app/provision/index.php @@ -54,10 +54,8 @@ openlog("fusion-provisioning", LOG_PID | LOG_PERROR, LOG_LOCAL0); } // Escence make request based on UserID for Memory keys -/* -The file name is fixed to `Account1_Extern.xml`. -(Account1 is the first account you register) -*/ + // The file name is fixed to `Account1_Extern.xml`. + // (Account1 is the first account you register) if(empty($mac) && !empty($ext)){ $domain_array = explode(":", $_SERVER["HTTP_HOST"]); $domain_name = $domain_array[0]; @@ -84,7 +82,7 @@ The file name is fixed to `Account1_Extern.xml`. } //prepare the mac address - if (isset($_REQUEST['mac'])) { + if (isset($mac)) { //normalize the mac address to lower case $mac = strtolower($mac); //replace all non hexadecimal values and validate the mac address