Provision file download work with address

This commit is contained in:
FusionPBX 2023-06-30 20:06:40 -06:00 committed by GitHub
parent 51c349a78e
commit 2854fd816c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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