From 1fbf7c2202ad94446b07ce2a9c1a6005b1786f72 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 9 Jul 2004 11:42:24 +0000 Subject: [PATCH] Disabling info action for now, would kill suda if we put it live and we can't have that happening --- includes/Article.php | 7 ++++++- includes/DefaultSettings.php | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index ce6e1b02ed..748bcec3ad 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1827,7 +1827,12 @@ class Article { function info() { - global $wgUser, $wgTitle, $wgOut, $wgLang; + global $wgUser, $wgTitle, $wgOut, $wgLang, $wgAllowPageInfo; + + if ( !$wgAllowPageInfo ) { + $wgOut->errorpage( "nosuchaction", "nosuchactiontext" ); + return; + } $basenamespace = $wgTitle->getNamespace() & (~1); $cur_clause = "cur_title='".$wgTitle->getDBkey()."' AND cur_namespace=".$basenamespace; diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index f982827a02..d4959a7c6e 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -432,4 +432,7 @@ $wgAllowUserJs = true; # Allow user Cascading Style Sheets (CSS)? $wgAllowUserCss = true; +# Allow the "info" action, very inefficient at the moment +$wgAllowPageInfo = false; + ?> -- 2.20.1