Index: typo3/template.php =================================================================== --- typo3/template.php (revision 7492) +++ typo3/template.php (working copy) @@ -801,8 +801,11 @@ $this->parseTime(). ($this->form?' ':''); - // if something is in buffer, put it to end of page - $str .= ob_get_clean(); + // if something is in buffer like debug, put it to end of page + if (ob_get_contents()) { + $str .= ob_get_clean(); + header('Content-Encoding: None'); + } if ($this->docType!='xhtml_frames') {