Fix for r70871: need explicit check against null since current check also catches...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 10 Nov 2010 08:28:26 +0000 (08:28 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 10 Nov 2010 08:28:26 +0000 (08:28 +0000)
includes/Wiki.php

index 7ae585b..feebcde 100644 (file)
@@ -211,7 +211,7 @@ class MediaWiki {
                        }
                // Redirect loops, no title in URL, $wgUsePathInfo URLs, and URLs with a variant
                } else if ( $action == 'view' && !$request->wasPosted()
-                       && ( !$request->getVal( 'title' ) || $title->getPrefixedDBKey() != $request->getText( 'title' ) )
+                       && ( $request->getVal( 'title' ) === null || $title->getPrefixedDBKey() != $request->getText( 'title' ) )
                        && !count( array_diff( array_keys( $request->getValues() ), array( 'action', 'title' ) ) ) )
                {
                        if ( $title->getNamespace() == NS_SPECIAL ) {