From aad703b018e2e121f4048db2bbdaf2c4a2bf12d9 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 30 Mar 2020 20:21:49 -0600 Subject: [PATCH] MOH: Remove test mod. --- app/music_on_hold/music_on_hold.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/music_on_hold/music_on_hold.php b/app/music_on_hold/music_on_hold.php index ea4f62fb76..a9a072c541 100644 --- a/app/music_on_hold/music_on_hold.php +++ b/app/music_on_hold/music_on_hold.php @@ -102,7 +102,7 @@ $stream_path = str_replace('..', '', $stream_path); //get the file and sanitize it - $stream_file = basename('danza-espanola-op-37-h-142-xii-arabesca.wav'); + $stream_file = basename($_GET['file']); $search = array('..', '/', ':'); $stream_file = str_replace($search, '', $stream_file); @@ -136,7 +136,7 @@ header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past if ($_GET['t'] == "bin") { header("Content-Length: ".filesize($stream_full_path)); - } + } ob_clean(); fpassthru($fd); }