Index: branches/wmf/1.18wmf1/extensions/CentralAuth/CentralAuthHooks.php |
— | — | @@ -320,7 +320,8 @@ |
321 | 321 | $wgMemc->set( CentralAuthUser::memcKey( 'login-token', $loginToken ), $data, 600 ); |
322 | 322 | |
323 | 323 | $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' ); |
325 | 326 | |
326 | 327 | if ( strpos( $url, '?' ) > 0 ) { |
327 | 328 | $url .= "&logout=1&token=$loginToken"; |