From: Andrew H Date: Sun, 24 Apr 2016 17:59:27 +0000 (+0000) Subject: Add X-Robots-Tag header to Special:Export dumps X-Git-Tag: 1.31.0-rc.0~7196^2 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=c71eda1ef5d1ba1d65b6b3e32e4ede223d7cae65;p=lhc%2Fweb%2Fwiklou.git Add X-Robots-Tag header to Special:Export dumps Adds "X-Robots-Tag: noindex,nofollow" header to Special:Export dumps so that dumps are not indexed by search engines. Bug: T91363 Change-Id: Ia96ec40ff185fdfd024312ee3cfe3c736ba8d806 --- diff --git a/includes/specials/SpecialExport.php b/includes/specials/SpecialExport.php index ede367ee08..3e66ab08d3 100644 --- a/includes/specials/SpecialExport.php +++ b/includes/specials/SpecialExport.php @@ -168,6 +168,7 @@ class SpecialExport extends SpecialPage { // This should provide safer streaming for pages with history wfResetOutputBuffers(); $request->response()->header( "Content-type: application/xml; charset=utf-8" ); + $request->response()->header( "X-Robots-Tag: noindex,nofollow" ); if ( $request->getCheck( 'wpDownload' ) ) { // Provide a sane filename suggestion