r97226 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97225‎ | r97226 | r97227 >
Date:00:54, 16 September 2011
Author:brion
Status:ok
Tags:
Comment:
* (bug 30922) Use canonical expansion for "latest version" links in DumpHTML when protocol-relative link in $wgServer
Modified paths:
  • /trunk/extensions/DumpHTML/dumpHTML.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/DumpHTML/dumpHTML.inc
@@ -653,7 +653,7 @@
654654 $wgHooks['GetFullURL'][] =& $this;
655655 $wgHooks['SiteNoticeBefore'][] =& $this;
656656 $wgHooks['SiteNoticeAfter'][] =& $this;
657 - $this->oldArticlePath = $wgServer . $wgArticlePath;
 657+ $this->oldArticlePath = wfExpandURL( $wgServer . $wgArticlePath, PROTO_CANONICAL );
658658 $this->oldLogo = $wgLogo;
659659 $this->oldRepoGroup = RepoGroup::singleton();
660660 $this->oldCopyrightIcon = $wgCopyrightIcon;

Status & tagging log