From ecc39f3ecdc5322dec9086adbe70cff83d3f9b8a Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 30 Apr 2004 06:51:31 +0000 Subject: [PATCH] Fix double-escaping on login/logout return page --- includes/SkinPHPTal.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/includes/SkinPHPTal.php b/includes/SkinPHPTal.php index 8c8857aef0..cd28f43d1e 100644 --- a/includes/SkinPHPTal.php +++ b/includes/SkinPHPTal.php @@ -74,7 +74,6 @@ $this->thispage = $wgTitle->getPrefixedDbKey(); $this->thisurl = $wgTitle->getPrefixedURL(); - $this->thisurle = urlencode($this->thisurl); $this->loggedin = $wgUser->getID() != 0; $this->username = $wgUser->getName(); $this->userpage = $wgLang->getNsText( Namespace::getUser() ) . ":" . $wgUser->getName(); @@ -253,7 +252,7 @@ ); $personal_urls['logout'] = array( 'text' => wfMsg('userlogout'), - 'href' => $this->makeSpecialUrl('Userlogout','returnto=' . $this->thisurle), + 'href' => $this->makeSpecialUrl('Userlogout','returnto=' . $this->thisurl), 'ttip' => wfMsg('tooltip-logout'), 'akey' => wfMsg('accesskey-logout') ); @@ -273,7 +272,7 @@ ); $personal_urls['anonlogin'] = array( 'text' => wfMsg('userlogin'), - 'href' => $this->makeSpecialUrl('Userlogin', 'returnto='.$this->thisurle), + 'href' => $this->makeSpecialUrl('Userlogin', 'returnto='.$this->thisurl), 'ttip' => wfMsg('tooltip-login'), 'akey' => wfMsg('accesskey-login') ); @@ -281,7 +280,7 @@ $personal_urls['login'] = array( 'text' => wfMsg('userlogin'), - 'href' => $this->makeSpecialUrl('Userlogin', 'returnto='.$this->thisurle), + 'href' => $this->makeSpecialUrl('Userlogin', 'returnto='.$this->thisurl), 'ttip' => wfMsg('tooltip-login'), 'akey' => wfMsg('accesskey-login') ); -- 2.20.1