From b16b6e844e88a31031b1cfe30c57746845a546f1 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 6 Feb 2024 12:30:09 -0700 Subject: [PATCH] Bug Fix: Clean buffer before sending the rendered template --- app/provision/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/provision/index.php b/app/provision/index.php index c29c1481c8..1b166c6074 100644 --- a/app/provision/index.php +++ b/app/provision/index.php @@ -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') {