From 9c68c183f2fc6e6e4e2912d17c8bc0462ebed3ed Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 16 Oct 2024 16:18:13 -0600 Subject: [PATCH] Fix play recording in CDR --- app/xml_cdr/resources/classes/xml_cdr.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index 395178bcf7..210088650f 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -1892,7 +1892,7 @@ if (!class_exists('xml_cdr')) { ob_clean(); //content-range - if (isset($_SERVER['HTTP_RANGE']) && $_GET['t'] != "bin") { + if (isset($_SERVER['HTTP_RANGE']) && $_GET['t'] != "bin" && $_GET['t'] != "record") { $this->range_download($record_file); } @@ -1952,7 +1952,7 @@ if (!class_exists('xml_cdr')) { else { $range = explode('-', $range); $c_start = $range[0]; - $c_end = (isset($range[1]) && is_numeric($range[1])) ? $range[1] : $size; + $c_end = (isset($range[1]) && is_numeric((int)$range[1])) ? $range[1] : $size; } /* Check the range and make sure it's treated according to the specs. * http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html