* (bug 1109) Correct fix for compressed 304 responses when additional output
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 5 Nov 2006 22:23:17 +0000 (22:23 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 5 Nov 2006 22:23:17 +0000 (22:23 +0000)
  buffers have been installed within the compression handler

RELEASE-NOTES
includes/OutputPage.php

index 6e5b131..f5f17fb 100644 (file)
@@ -144,6 +144,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * checkUsernames.php now uses wfDebugLog instead of hardcoded path to log
 * (bug 7810) Update talk namespaces for Occitan
 * Allow case-sensitive URLs to be used for uploading from URLs.
+* (bug 1109) Correct fix for compressed 304 responses when additional output
+  buffers have been installed within the compression handler
 
 
 == Languages updated ==
index 7ed4919..5670564 100644 (file)
@@ -127,7 +127,10 @@ class OutputPage {
                                $this->sendCacheControl();
                                wfDebug( "$fname: CACHED client: $ismodsince ; user: $wgUser->mTouched ; page: $timestamp ; site $wgCacheEpoch\n", false );
                                $this->disable();
-                               @ob_end_clean(); // Don't output compressed blob
+                               // Don't output compressed blob
+                               while( $status = ob_get_status() ) {
+                                       ob_end_clean();
+                               }
                                return true;
                        } else {
                                wfDebug( "$fname: READY  client: $ismodsince ; user: $wgUser->mTouched ; page: $timestamp ; site $wgCacheEpoch\n", false );