From f11481e96871ee4d0f3cf92bcce260720ac19240 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Mon, 16 Aug 2004 04:42:48 +0000 Subject: [PATCH] Don't follow redirects pointing to Special:Userlogout --- includes/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.20.1