From: Domas Mituzas Date: Sat, 11 Jul 2009 08:15:37 +0000 (+0000) Subject: good catch, $wgServer definitely needs trailing slash added =) X-Git-Tag: 1.31.0-rc.0~41005 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=f0c63dfe2f4501e3210538262480d9187b2fc75e;p=lhc%2Fweb%2Fwiklou.git good catch, $wgServer definitely needs trailing slash added =) --- 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; }