Fixed more php 8.1 errors (#6754)
* Update default_setting_edit.php * Update default_settings_reload.php * Update modules.php * Update access_controls_reload.php * Update call_recordings.php * Update fax.php * Update extension_edit.php * Update extension_imports.php * Update destination_imports.php * Update dialplan_outbound_add.php * Update dialplan_inbound_add.php * Update voicemail_imports.php * Update contact_import.php
This commit is contained in:
@@ -165,6 +165,7 @@ if (!class_exists('call_recordings')) {
|
||||
|
||||
//download the file
|
||||
if ($full_recording_path != '/' && file_exists($full_recording_path)) {
|
||||
ob_clean();
|
||||
$fd = fopen($full_recording_path, "rb");
|
||||
if ($this->binary) {
|
||||
header("Content-Type: application/force-download");
|
||||
@@ -187,12 +188,13 @@ if (!class_exists('call_recordings')) {
|
||||
header("Content-Length: ".filesize($full_recording_path));
|
||||
}
|
||||
ob_clean();
|
||||
fpassthru($fd);
|
||||
|
||||
//content-range
|
||||
if (isset($_SERVER['HTTP_RANGE']) && !$this->binary) {
|
||||
$this->range_download($full_recording_path);
|
||||
}
|
||||
|
||||
fpassthru($fd);
|
||||
}
|
||||
|
||||
//if base64, remove temp recording file
|
||||
|
||||
Reference in New Issue
Block a user