Index: trunk/extensions/CentralAuth/CentralAuthHooks.php |
— | — | @@ -136,16 +136,8 @@ |
137 | 137 | $wgMemc->set( CentralAuthUser::memcKey( 'login-token', $loginToken ), $data, 600 ); |
138 | 138 | |
139 | 139 | $wiki = WikiMap::getWiki( $wiki ); |
140 | | - $url = $wiki->getUrl( 'Special:AutoLogin' ); |
| 140 | + $url = wfAppendQuery( $wiki->getUrl( 'Special:AutoLogin' ), "token=$loginToken" ); |
141 | 141 | |
142 | | - $querystring = 'token=' . $loginToken; |
143 | | - |
144 | | - if ( strpos( $url, '?' ) > 0 ) { |
145 | | - $url .= "&$querystring"; |
146 | | - } else { |
147 | | - $url .= "?$querystring"; |
148 | | - } |
149 | | - |
150 | 142 | $inject_html .= Xml::element( 'img', |
151 | 143 | array( |
152 | 144 | 'src' => $url, |