From d8786aa613cc3fff631faf192bf29d6de107f151 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Tue, 27 Jan 2026 19:37:08 -0700 Subject: [PATCH] Update the URL to prevent browser cache --- app/recordings/recording_edit.php | 5 +++-- app/voicemail_greetings/voicemail_greeting_edit.php | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/recordings/recording_edit.php b/app/recordings/recording_edit.php index 2d815eda1d..1c79147f47 100644 --- a/app/recordings/recording_edit.php +++ b/app/recordings/recording_edit.php @@ -327,6 +327,7 @@ echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$settings->get('theme', 'button_icon_delete'),'name'=>'btn_delete','style'=>'margin-left: 15px;','onclick'=>"modal_open('modal-delete','btn_delete');"]); } if (permission_exists('recording_play') && !empty($recording_uuid) && is_uuid($recording_uuid)) { + $recording_hash = md5($recording_voice.$recording_message); $recording_file_name = strtolower(pathinfo($recording_filename, PATHINFO_BASENAME)); $recording_file_ext = pathinfo($recording_file_name, PATHINFO_EXTENSION); switch ($recording_file_ext) { @@ -334,7 +335,7 @@ case "mp3" : $recording_type = "audio/mpeg"; break; case "ogg" : $recording_type = "audio/ogg"; break; } - echo ""; + echo ""; echo button::create(['type'=>'button','title'=>$text['label-play'].' / '.$text['label-pause'],'label'=>$text['label-preview'],'icon'=>$settings->get('theme','button_icon_play'),'id'=>'recording_button_'.escape($recording_uuid),'onclick'=>"recording_play('".escape($recording_uuid)."','','','".$text['label-preview']."'); this.blur();"]); } echo button::create(['type'=>'submit','label'=>$text['button-save'],'icon'=>$settings->get('theme', 'button_icon_save'),'id'=>'btn_save','style'=>'margin-left: 15px;']); @@ -557,4 +558,4 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?> diff --git a/app/voicemail_greetings/voicemail_greeting_edit.php b/app/voicemail_greetings/voicemail_greeting_edit.php index f783269731..0230f8c6c0 100644 --- a/app/voicemail_greetings/voicemail_greeting_edit.php +++ b/app/voicemail_greetings/voicemail_greeting_edit.php @@ -313,6 +313,7 @@ if (!empty($_POST) && empty($_POST["persistformvar"])) { echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$settings->get('theme', 'button_icon_delete'),'name'=>'btn_delete','collapse'=>'hide-xs','style'=>'margin-left: 15px;','onclick'=>"modal_open('modal-delete','btn_delete');"]); } if (permission_exists('voicemail_greeting_play') && $action == 'update') { + $greeting_hash = md5($greeting_voice.$greeting_message); $greeting_file_name = strtolower(pathinfo($greeting_filename, PATHINFO_BASENAME)); $greeting_file_ext = pathinfo($greeting_file_name, PATHINFO_EXTENSION); switch ($greeting_file_ext) { @@ -320,7 +321,7 @@ if (!empty($_POST) && empty($_POST["persistformvar"])) { case "mp3" : $greeting_type = "audio/mpeg"; break; case "ogg" : $greeting_type = "audio/ogg"; break; } - echo ""; + echo ""; echo button::create(['type'=>'button','title'=>$text['label-play'].' / '.$text['label-pause'],'label'=>$text['label-preview'],'icon'=>$settings->get('theme','button_icon_play'),'id'=>'recording_button_'.escape($voicemail_greeting_uuid),'onclick'=>"recording_play('".escape($voicemail_greeting_uuid)."','','','".$text['label-preview']."'); this.blur();"]); } echo button::create(['type'=>'submit','label'=>$text['button-save'],'icon'=>$settings->get('theme', 'button_icon_save'),'id'=>'btn_save','style'=>'margin-left: 15px;','collapse'=>'hide-xs']);