Index: trunk/phase3/index.php |
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | } else if ( $wgTitle->getInterwiki() != "" ) { |
69 | 69 | $url = $wgTitle->getFullURL(); |
70 | 70 | # Check for a redirect loop |
71 | | - if ( !preg_match( "/^" . preg_quote( $wgServer ) . "/", $url ) && $wgTitle->isLocal() ) { |
| 71 | + if ( !preg_match( "/^" . preg_quote( $wgServer, "/" ) . "/", $url ) && $wgTitle->isLocal() ) { |
72 | 72 | $wgOut->redirect( $url ); |
73 | 73 | } else { |
74 | 74 | $wgTitle = Title::newFromText( wfMsg( "badtitle" ) ); |