openrat-cms

OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs | README

commit 31e1004e25f710abd5b35f7e44e7157a3511805f
parent 50c7fa7f83c9cb321984b576c2fa03b69affc358
Author: Jan Dankert <develop@jandankert.de>
Date:   Mon,  5 Oct 2020 23:48:34 +0200

Fix: HTML-comments are destroying binary output.

Diffstat:
Mmodules/template_engine/engine/TemplateEngine.class.php | 7-------
1 file changed, 0 insertions(+), 7 deletions(-)

diff --git a/modules/template_engine/engine/TemplateEngine.class.php b/modules/template_engine/engine/TemplateEngine.class.php @@ -227,13 +227,6 @@ class TemplateEngine if ( ! is_file($templateFile) ) throw new LogicException("Template file '$templateFile' was not found."); - if ( DEVELOPMENT ) - // save a few bytes in production mode ;) - header("X-CMS-Template-File: " . $templateFile); - - if ( DEVELOPMENT ) - echo '<!-- '."\n".print_r($outputData,true)."\n".' -->'; - // Extracting all output data into the actual context extract($outputData);