From 67fd9d64b7c16e17bb91918af1ff18fdc9d40061 Mon Sep 17 00:00:00 2001 From: Leo Koppelkamm Date: Tue, 12 Jul 2011 09:58:15 +0000 Subject: [PATCH] r91942: Add nosuchaction also if action not in --- includes/Wiki.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Wiki.php b/includes/Wiki.php index 97572f16df..41405d1c74 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -270,7 +270,7 @@ class MediaWiki { $action = $request->getVal( 'action', 'view' ); // Check for disabled actions - if ( in_array( $action, $wgDisabledActions ) ) { + if ( in_array( $action, $wgDisabledActions ) || !in_array( $action, $wgActions ) ) { $action = 'nosuchaction'; } elseif ( $action === 'historysubmit' ) { // Workaround for bug #20966: inability of IE to provide an action dependent -- 2.20.1