Page MenuHomePhabricator

Images: link parameter should handle external urls correctly
Closed, ResolvedPublic

Description

If you parse this wiki code:
[[file:speakerlink-new.svg|11px|link={{filepath:En-us-Paris.ogg}}|Listen]]

You get a link with the following href value:
.///upload.wikimedia.org/wikipedia/commons/0/0e/En-us-Paris.ogg

The href value should be:
//upload.wikimedia.org/wikipedia/commons/0/0e/En-us-Paris.ogg


Version: unspecified
Severity: normal

Details

Reference
bz49293

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:58 AM
bzimport set Reference to bz49293.

Simplified example: [[File:foo.jpg|link=//upload.wikimedia.org/wikipedia/commons/0/0e/En-us-Paris.ogg]]

Similarly, [[File:Foobar.jpg|link=http://example.com]] yields <a href="./Http://example.com" ...>

Change 77984 had a related patch set uploaded by Cscott:
Images: link parameter should handle external URLs correctly.

https://gerrit.wikimedia.org/r/77984

Change 77984 merged by jenkins-bot:
Images: link parameter should handle external URLs correctly.

https://gerrit.wikimedia.org/r/77984