Fix the device.file.download file name

This commit is contained in:
markjcrane
2023-06-30 09:59:57 -06:00
parent 53779d50d3
commit f8b657f674
2 changed files with 3 additions and 2 deletions

View File

@@ -445,7 +445,8 @@
$device_address_formatted = $prov->format_address($device_address, $device_vendor);
//replace the variable name with the value
$file_name = str_replace("{\$device_address}", $device_address_formatted, $file);
$file_name = str_replace("{\$address}", $device_address_formatted, $file);
$file_name = str_replace("{\$mac}", $device_address_formatted, $file);
//set the headers
header('Content-Description: File Transfer');