if ( $this->showCreateAccountLink() ) {
# Pass any language selection on to the mode switch link
if ( $this->mLanguage ) {
- $linkq .= '&uselang=' . $this->mLanguage;
+ $linkq .= '&uselang=' . urlencode( $this->mLanguage );
}
// Supply URL, login template creates the button.
$template->set( 'createOrLoginHref', $titleObj->getLocalURL( $linkq ) );
$linkq = $this->getReturnToQueryStringFragment();
// Pass any language selection on to the mode switch link
if ( $this->mLanguage ) {
- $linkq .= '&uselang=' . $this->mLanguage;
+ $linkq .= '&uselang=' . urlencode( $this->mLanguage );
}
$loggedIn = $this->getUser()->isLoggedIn();