Bug Fix: Clean buffer before sending the rendered template

This commit is contained in:
FusionPBX
2024-02-06 12:31:16 -07:00
committed by GitHub
parent 64fd1a5e54
commit e3682cee6c

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') {
@@ -531,7 +534,3 @@
}
?>