r98744 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98743‎ | r98744 | r98745 >
Date:10:24, 3 October 2011
Author:catrope
Status:ok
Tags:
Comment:
ExtensionDistributor: Don't display a protocol-relative URL in plain text (or use it in a Location: header, for that matter), but expand it with the current protocol. Bug reported by Paxed on IRC
Modified paths:
  • /trunk/extensions/ExtensionDistributor/ExtensionDistributor_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ExtensionDistributor/ExtensionDistributor_body.php
@@ -249,7 +249,7 @@
250250 }
251251 }
252252
253 - $url = "$wgExtDistTarUrl/$tarName";
 253+ $url = wfExpandUrl( "$wgExtDistTarUrl/$tarName", PROTO_CURRENT );
254254
255255 // Show a message
256256 $wgOut->addWikiMsg( 'extdist-created', $extension, "r$rev",

Sign-offs

UserFlagDate
Nikerabbitinspected16:31, 3 October 2011

Follow-up revisions

RevisionCommit summaryAuthorDate
r987461.18wmf1: MFT r98744, r98745catrope10:42, 3 October 2011
r987471.17wmf1: MFT r98744, r98745catrope10:42, 3 October 2011

Status & tagging log