Index: trunk/phase3/includes/Wiki.php |
— | — | @@ -270,7 +270,7 @@ |
271 | 271 | $action = $request->getVal( 'action', 'view' ); |
272 | 272 | |
273 | 273 | // Check for disabled actions |
274 | | - if ( in_array( $action, $wgDisabledActions ) ) { |
| 274 | + if ( in_array( $action, $wgDisabledActions ) || !in_array( $action, $wgActions ) ) { |
275 | 275 | $action = 'nosuchaction'; |
276 | 276 | } elseif ( $action === 'historysubmit' ) { |
277 | 277 | // Workaround for bug #20966: inability of IE to provide an action dependent |