From: Jens Frank Date: Mon, 16 Aug 2004 04:42:48 +0000 (+0000) Subject: Don't follow redirects pointing to Special:Userlogout X-Git-Tag: 1.5.0alpha1~2318 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=f11481e96871ee4d0f3cf92bcce260720ac19240;p=lhc%2Fweb%2Fwiklou.git Don't follow redirects pointing to Special:Userlogout --- diff --git a/includes/Article.php b/includes/Article.php index 877982fa7e..a00e5aa201 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -367,7 +367,7 @@ class Article { # not to by either the function parameter or the query if ( ( 'no' != $redirect ) && ( false == $noredir ) ) { $rt = Title::newFromRedirect( $s->cur_text ); - if ( $rt ) { + if ( $rt && ! ( $rt->getNamespace() == NS_SPECIAL && $rt->getText() == 'Userlogout' ) ) { # Gotta hand redirects to special pages differently: # Fill the HTTP response "Location" header and ignore # the rest of the page we're on.