good catch, $wgServer definitely needs trailing slash added =)
authorDomas Mituzas <midom@users.mediawiki.org>
Sat, 11 Jul 2009 08:15:37 +0000 (08:15 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Sat, 11 Jul 2009 08:15:37 +0000 (08:15 +0000)
includes/parser/ParserOutput.php

index e0b0f77..1b9ebf4 100644 (file)
@@ -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; 
        }