[BUGFIX] Endless loop in flushOutputBuffers()
authorChristian Kuhn <lolli@schwarzbu.ch>
Wed, 10 Oct 2012 15:39:51 +0000 (17:39 +0200)
committerXavier Perseguers <xavier@typo3.org>
Tue, 16 Oct 2012 09:14:50 +0000 (11:14 +0200)
Change-Id: I87f998211d12f2d7c40a582f8b2c605f2edcaed0
Resolves: #40126
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/15495
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
t3lib/class.t3lib_div.php

index 2b90b62..8315b10 100644 (file)
@@ -5811,8 +5811,8 @@ final class t3lib_div {
        public static function flushOutputBuffers() {
                $obContent = '';
 
-               while ($obContent .= ob_get_clean()) {
-                       ;
+               while ($content = ob_get_clean()) {
+                       $obContent .= $content;
                }
 
                        // if previously a "Content-Encoding: whatever" has been set, we have to unset it