browsers seem to accept relative ones); escape the page name
on the login cookie check.
header( "Content-language: {$wgLanguageCode}" );
if ( "" != $this->mRedirect ) {
+ if( substr( $this->mRedirect, 0, 4 ) != "http" ) {
+ # Standards require redirect URLs to be absolute
+ global $wgServer;
+ $this->mRedirect = $wgServer . $this->mRedirect;
+ }
header( "Location: {$this->mRedirect}" );
return;
}
{
global $wgOut, $wgLang;
- $check = wfLocalUrl( $wgLang->specialPage( "Userlogin" ),
+ $check = wfLocalUrl( wfUrlEncode( $wgLang->specialPage( "Userlogin" ) ),
"wpCookieCheck=$type" );
return $wgOut->redirect( $check );