r53105 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53104‎ | r53105 | r53106 >
Date:08:15, 11 July 2009
Author:midom
Status:ok
Tags:
Comment:
good catch, $wgServer definitely needs trailing slash added =)
Modified paths:
  • /trunk/phase3/includes/parser/ParserOutput.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/ParserOutput.php
@@ -96,7 +96,7 @@
9797 function addExternalLink( $url ) {
9898 # We don't register links pointing to our own server, unless... :-)
9999 global $wgServer, $wgRegisterInternalExternals;
100 - if( $wgRegisterInternalExternals or stripos($url,$wgServer)!==0)
 100+ if( $wgRegisterInternalExternals or stripos($url,$wgServer.'/')!==0)
101101 $this->mExternalLinks[$url] = 1;
102102 }
103103

Status & tagging log