r98749 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98748‎ | r98749 | r98750 >
Date:10:56, 3 October 2011
Author:catrope
Status:ok
Tags:
Comment:
1.17wmf1: MFT r98748
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/CentralAuth/CentralAuthHooks.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/CentralAuth/CentralAuthHooks.php
@@ -294,7 +294,8 @@
295295 $wgMemc->set( CentralAuthUser::memcKey( 'login-token', $loginToken ), $data, 600 );
296296
297297 $wiki = WikiMap::getWiki( $wiki );
298 - $url = $wiki->getUrl( 'Special:AutoLogin' );
 298+ // Use WikiReference::getFullUrl(), returns a protocol-relative URL if needed
 299+ $url = $wiki->getFullUrl( 'Special:AutoLogin' );
299300
300301 if ( strpos( $url, '?' ) > 0 ) {
301302 $url .= "&logout=1&token=$loginToken";

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r98748Followup r98745: also use protocol-relative URLs for logout linkscatrope10:55, 3 October 2011

Status & tagging log