Bug Fix: Clean buffer before sending the rendered template

This commit is contained in:
FusionPBX 2024-02-06 12:30:09 -07:00 committed by GitHub
parent f97a67fb27
commit b16b6e844e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -452,6 +452,9 @@
$prov->file = $file;
$file_contents = $prov->render();
//clean the output buffer
ob_clean();
//deliver the customized config over HTTP/HTTPS
//need to make sure content-type is correct
if (!empty($_REQUEST['content_type']) && $_REQUEST['content_type'] == 'application/octet-stream') {