http://www.mediawiki.org/wiki/Special:Code/MediaWiki/91943
Revision: 91943
Author: diebuche
Date: 2011-07-12 09:58:15 +0000 (Tue, 12 Jul 2011)
Log Message:
-----------
r91942: Add nosuchaction also if action not in
Modified Paths:
--------------
trunk/phase3/includes/Wiki.php
Modified: trunk/phase3/includes/Wiki.php
===================================================================
--- trunk/phase3/includes/Wiki.php 2011-07-12 09:42:07 UTC (rev 91942)
+++ trunk/phase3/includes/Wiki.php 2011-07-12 09:58:15 UTC (rev 91943)
@@ -270,7 +270,7 @@
$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
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs