Reedy has uploaded a new change for review.
https://gerrit.wikimedia.org/r/92828
Change subject: Wrap extrac2.php in ob_start()/ob_flush()
......................................................................
Wrap extrac2.php in ob_start()/ob_flush()
Bug: 56399
Change-Id: I449a82386db57f72d130adead624dcf2db6aca22
---
M extract2.php
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
refs/changes/28/92828/1
diff --git a/extract2.php b/extract2.php
index 498912a..2b76233 100644
--- a/extract2.php
+++ b/extract2.php
@@ -1,4 +1,6 @@
<?php
+ob_start();
+
$lang = 'meta';
putenv( "MW_LANG={$lang}" ); // notify MWMultiVersion
@@ -20,6 +22,7 @@
if ( !in_array( $template, $allowed_templates ) ) {
header( 'Content-Type: text/plain; charset=utf-8' );
echo 'Invalid parameters...';
+ ob_flush();
exit;
}
@@ -32,3 +35,4 @@
header( 'Cache-Control: s-maxage=3600, must-revalidate, max-age=0' );
header( "Last-modified: $lastmod" );
echo $rawHtml;
+ob_flush();
--
To view, visit https://gerrit.wikimedia.org/r/92828
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I449a82386db57f72d130adead624dcf2db6aca22
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits