From f0c63dfe2f4501e3210538262480d9187b2fc75e Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Sat, 11 Jul 2009 08:15:37 +0000 Subject: [PATCH] good catch, $wgServer definitely needs trailing slash added =) --- includes/parser/ParserOutput.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/parser/ParserOutput.php b/includes/parser/ParserOutput.php index e0b0f77604..1b9ebf4872 100644 --- a/includes/parser/ParserOutput.php +++ b/includes/parser/ParserOutput.php @@ -96,7 +96,7 @@ class ParserOutput function addExternalLink( $url ) { # We don't register links pointing to our own server, unless... :-) global $wgServer, $wgRegisterInternalExternals; - if( $wgRegisterInternalExternals or stripos($url,$wgServer)!==0) + if( $wgRegisterInternalExternals or stripos($url,$wgServer.'/')!==0) $this->mExternalLinks[$url] = 1; } -- 2.20.1