r98750 MediaWiki - Code Review archive

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

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/CentralAuth/CentralAuthHooks.php
@@ -320,7 +320,8 @@
321321 $wgMemc->set( CentralAuthUser::memcKey( 'login-token', $loginToken ), $data, 600 );
322322
323323 $wiki = WikiMap::getWiki( $wiki );
324 - $url = $wiki->getUrl( 'Special:AutoLogin' );
 324+ // Use WikiReference::getFullUrl(), returns a protocol-relative URL if needed
 325+ $url = $wiki->getFullUrl( 'Special:AutoLogin' );
325326
326327 if ( strpos( $url, '?' ) > 0 ) {
327328 $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