From e3682cee6cc0c18dfeff42c571724120b4a53b78 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 6 Feb 2024 12:31:16 -0700 Subject: [PATCH] Bug Fix: Clean buffer before sending the rendered template --- app/provision/index.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/provision/index.php b/app/provision/index.php index 20de9e4517..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') { @@ -531,7 +534,3 @@ } ?> - - - -