Change the vendor ID hex number to lower case and re-use prov object that already exists.

This commit is contained in:
markjcrane
2016-01-09 11:50:49 -07:00
parent 62c83ff03f
commit 7bb49cce58
2 changed files with 2 additions and 3 deletions

View File

@@ -86,7 +86,7 @@ include "root.php";
case "000e08":
$device_vendor = "linksys";
break;
case "08000F":
case "08000f":
$device_vendor = "mitel";
break;
case "0080f0":

View File

@@ -299,8 +299,7 @@ openlog("fusion-provisioning", LOG_PID | LOG_PERROR, LOG_LOCAL0);
//need to make sure content-type is correct
if ($_REQUEST['content_type'] == 'application/octet-stream') {
//format the mac address and
$format = new provision();
$mac = $format->format_mac($mac, $device_vendor);
$mac = $prov->format_mac($mac, $device_vendor);
//replace the variable name with the value
$file_name = str_replace("{\$mac}", $mac, $file);