r45360 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45359‎ | r45360 | r45361 >
Date:05:51, 3 January 2009
Author:aaron
Status:ok
Tags:
Comment:
(bug 16865) Access to pages via "curid" parameter should include meta noindex
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -850,6 +850,10 @@
851851 wfProfileOut( __METHOD__ );
852852 return;
853853 }
 854+
 855+ # For ?curid=x urls, disallow indexing
 856+ if( $wgRequest->getInt('curid') )
 857+ $wgOut->setRobotPolicy( 'noindex,follow' );
854858
855859 # We're looking at an old revision
856860 if( !empty( $oldid ) ) {

Status & tagging log