Index: branches/wmf/1.17wmf1/extensions/CentralAuth/CentralAuthHooks.php |
— | — | @@ -294,7 +294,8 @@ |
295 | 295 | $wgMemc->set( CentralAuthUser::memcKey( 'login-token', $loginToken ), $data, 600 ); |
296 | 296 | |
297 | 297 | $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' ); |
299 | 300 | |
300 | 301 | if ( strpos( $url, '?' ) > 0 ) { |
301 | 302 | $url .= "&logout=1&token=$loginToken"; |