From 12cb599cb7fee5c9814dbaa3d209b31292a9df9d Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Sat, 16 Apr 2011 07:39:41 +0000 Subject: [PATCH] Prevent bug 17790 from reappearing on Special:Preferences --- includes/SkinTemplate.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 65577542e9..d40c073baf 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -626,7 +626,9 @@ class SkinTemplate extends Skin { $personal_urls['logout'] = array( 'text' => wfMsg( 'userlogout' ), 'href' => self::makeSpecialUrl( 'Userlogout', - $title->isSpecial( 'Preferences' ) ? '' : $returnto + // userlogout link must always contain an & character, otherwise we might not be able + // to detect a buggy precaching proxy (bug 17790) + $title->isSpecial( 'Preferences' ) ? 'noreturnto' : $returnto ), 'active' => false ); -- 2.20.1