From 78704bd7fec9890656c3f03268c0440c95ce03ad Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 3 Jan 2009 05:51:15 +0000 Subject: [PATCH] (bug 16865) Access to pages via "curid" parameter should include meta noindex --- includes/Article.php | 4 ++++ 1 file changed, 4 insertions(+) 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 ) ) { -- 2.20.1