From 095c164477b2f6e3898c6ccd8010bd14024f2fed Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 30 Jul 2025 19:02:55 -0600 Subject: [PATCH] Fix the recording name --- app/recordings/recording_edit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/recordings/recording_edit.php b/app/recordings/recording_edit.php index 3821f062b4..3c8d211c64 100644 --- a/app/recordings/recording_edit.php +++ b/app/recordings/recording_edit.php @@ -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")) {