From: Leo Koppelkamm Date: Tue, 12 Jul 2011 09:58:15 +0000 (+0000) Subject: r91942: Add nosuchaction also if action not in X-Git-Tag: 1.31.0-rc.0~28916 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=67fd9d64b7c16e17bb91918af1ff18fdc9d40061;p=lhc%2Fweb%2Fwiklou.git r91942: Add nosuchaction also if action not in --- 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