X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FTitle.php;h=b347edbb6ad98a5ed6cb7794f0af8ac487bb927f;hb=70e760ee4e37edad1be0573b37c17fe6899e4806;hp=fac45d0c7a1e0f7d0203f4387b1718777287f95c;hpb=a14e165b661e4630be9a794dd3f1deb4fce704c7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Title.php b/includes/Title.php index fac45d0c7a..b347edbb6a 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1939,7 +1939,6 @@ class Title { * - quick : does cheap permission checks from slaves (usable for GUI creation) * - full : does cheap and expensive checks possibly from a slave * - secure : does cheap and expensive checks, using the master as needed - * @param bool $short Set this to true to stop after the first permission error. * @param array $ignoreErrors Array of Strings Set this to a list of message keys * whose corresponding errors may be ignored. * @return array Array of arguments to wfMessage to explain permissions problems. @@ -4547,15 +4546,17 @@ class Title { public function isValidRedirectTarget() { global $wgInvalidRedirectTargets; - // invalid redirect targets are stored in a global array, but explicitly disallow Userlogout here - if ( $this->isSpecial( 'Userlogout' ) ) { - return false; - } - - foreach ( $wgInvalidRedirectTargets as $target ) { - if ( $this->isSpecial( $target ) ) { + if ( $this->isSpecialPage() ) { + // invalid redirect targets are stored in a global array, but explicitly disallow Userlogout here + if ( $this->isSpecial( 'Userlogout' ) ) { return false; } + + foreach ( $wgInvalidRedirectTargets as $target ) { + if ( $this->isSpecial( $target ) ) { + return false; + } + } } return true;