dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86ab2f9
)
(bug 16865) Access to pages via "curid" parameter should include meta noindex
author
Aaron Schulz
<aaron@users.mediawiki.org>
Sat, 3 Jan 2009 05:51:15 +0000
(
05:51
+0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Sat, 3 Jan 2009 05:51:15 +0000
(
05:51
+0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
72cc880
..
74bf29c
100644
(file)
--- 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 ) ) {