From bce224d0db04f0d2307609a33c92c163cdebda9d Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 29 May 2004 01:24:33 +0000 Subject: [PATCH] Fix preg_quote usage in interwiki loop detection --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ) ); -- 2.20.1