From: Aaron Schulz Date: Sat, 3 Jan 2009 05:51:15 +0000 (+0000) Subject: (bug 16865) Access to pages via "curid" parameter should include meta noindex X-Git-Tag: 1.31.0-rc.0~43590 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=78704bd7fec9890656c3f03268c0440c95ce03ad;p=lhc%2Fweb%2Fwiklou.git (bug 16865) Access to pages via "curid" parameter should include meta noindex --- diff --git a/includes/Article.php b/includes/Article.php index 72cc88086c..74bf29ce8c 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -850,6 +850,10 @@ class Article { wfProfileOut( __METHOD__ ); return; } + + # For ?curid=x urls, disallow indexing + if( $wgRequest->getInt('curid') ) + $wgOut->setRobotPolicy( 'noindex,follow' ); # We're looking at an old revision if( !empty( $oldid ) ) {