r91942: Add nosuchaction also if action not in
authorLeo Koppelkamm <diebuche@users.mediawiki.org>
Tue, 12 Jul 2011 09:58:15 +0000 (09:58 +0000)
committerLeo Koppelkamm <diebuche@users.mediawiki.org>
Tue, 12 Jul 2011 09:58:15 +0000 (09:58 +0000)
includes/Wiki.php

index 97572f1..41405d1 100644 (file)
@@ -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