From: Brion Vibber Date: Sat, 29 May 2004 01:24:33 +0000 (+0000) Subject: Fix preg_quote usage in interwiki loop detection X-Git-Tag: 1.5.0alpha1~3167 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=bce224d0db04f0d2307609a33c92c163cdebda9d;p=lhc%2Fweb%2Fwiklou.git Fix preg_quote usage in interwiki loop detection --- diff --git a/index.php b/index.php index b52395b056..86559978f1 100644 --- a/index.php +++ b/index.php @@ -67,7 +67,7 @@ if ( $search = $wgRequest->getText( 'search' ) ) { } else if ( $wgTitle->getInterwiki() != "" ) { $url = $wgTitle->getFullURL(); # Check for a redirect loop - if ( !preg_match( "/^" . preg_quote( $wgServer ) . "/", $url ) && $wgTitle->isLocal() ) { + if ( !preg_match( "/^" . preg_quote( $wgServer, "/" ) . "/", $url ) && $wgTitle->isLocal() ) { $wgOut->redirect( $url ); } else { $wgTitle = Title::newFromText( wfMsg( "badtitle" ) );