From e6ebe8459573d65a3da003a0196cd8be7f4bcb12 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 5 Jun 2018 18:37:39 -0600 Subject: [PATCH] Update recordings.php --- app/recordings/recordings.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/recordings/recordings.php b/app/recordings/recordings.php index 4a5908c83a..1592fcfa8a 100644 --- a/app/recordings/recordings.php +++ b/app/recordings/recordings.php @@ -329,13 +329,13 @@ foreach($recordings as $row) { //playback progress bar if (permission_exists('recording_play')) { - echo "\n"; + echo "\n"; } - $tr_link = (permission_exists('recording_edit')) ? "href='recording_edit.php?id=".$row['recording_uuid']."'" : null; + $tr_link = (permission_exists('recording_edit')) ? "href='recording_edit.php?id=".escape($row['recording_uuid'])."'" : null; echo "\n"; - echo " ".$row['recording_name']."\n"; + echo " ".escape($row['recording_name'])."\n"; if ($_SESSION['recordings']['storage_type']['text'] != 'base64') { - echo " ".str_replace('_', '_​', $row['recording_filename'])."\n"; + echo " ".str_replace('_', '_​', escape($row['recording_filename']))."\n"; } if (permission_exists('recording_play') || permission_exists('recording_download')) { echo " "; @@ -348,11 +348,11 @@ case "mp3" : $recording_type = "audio/mpeg"; break; case "ogg" : $recording_type = "audio/ogg"; break; } - echo ""; - echo "".$v_link_label_play.""; + echo ""; + echo "".$v_link_label_play.""; } if (permission_exists('recording_download')) { - echo "".$v_link_label_download.""; + echo "".$v_link_label_download.""; } echo " \n"; } @@ -372,14 +372,14 @@ echo " ".$file_date."\n"; } else { - echo " ".$row['recording_description']." \n"; + echo " ".escape($row['recording_description'])." \n"; } echo " "; if (permission_exists('recording_edit')) { - echo "$v_link_label_edit"; + echo "$v_link_label_edit"; } if (permission_exists('recording_delete')) { - echo "$v_link_label_delete"; + echo "$v_link_label_delete"; } echo " \n"; echo "\n";