Last modified: 2010-03-17 00:22:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T21270, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19270 - Relative URIs in interwiki links table break interwiki transclusion
Relative URIs in interwiki links table break interwiki transclusion
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on: 20342 18664
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-17 23:50 UTC by Laurence 'GreenReaper' Parry
Modified: 2010-03-17 00:22 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Call wfExpandUrl in request() [HttpFunctions.php] (685 bytes, patch)
2009-06-17 23:50 UTC, Laurence 'GreenReaper' Parry
Details

Description Laurence 'GreenReaper' Parry 2009-06-17 23:50:12 UTC
Created attachment 6237 [details]
Call wfExpandUrl in request() [HttpFunctions.php]

If you have an interwiki link:
ru => '//ru.wikifur.com/wiki/$1'
where iw_trans is set to 1

then the following inclusion:
{{:ru:GreenReaper}}
will fail with the following error:
"[Template fetch failed for //en.wikifur.com/wiki/GreenReaper?action=render]"
and:
"Warning: file_get_contents(//en.wikifur.com/wiki/GreenReaper?action=render) [function.file-get-contents]: failed to open stream: No such file or directory in [*censored*]/pool/w/includes/HttpFunctions.php on line 116"

If wfExpandUrl is called to expand the $url passed to request(), this ensures (once bug 18664 is fixed) that the relative URL becomes an absolute URI as required by file_get_contents.
Comment 1 Chad H. 2010-03-17 00:22:20 UTC
Fixed in r63848.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links