Fix the recording name

This commit is contained in:
FusionPBX
2025-07-30 19:02:55 -06:00
committed by GitHub
parent e6d4a9fad0
commit 095c164477

View File

@@ -198,10 +198,10 @@
}
//create the file name
//if (empty($recording_filename)) {
if (empty($recording_filename) && !empty($recording_name)) {
// Replace invalid characters with underscore
//$recording_filename = preg_replace('#[^a-zA-Z0-9_\-]#', '_', $recording_name);
//}
$recording_filename = preg_replace('#[^a-zA-Z0-9_\-]#', '_', $recording_name);
}
//make sure the filename ends with the approved extension
if (!str_ends_with($recording_filename, ".$recording_extension")) {