Page MenuHomePhabricator

RFC autolinks don't work properly inside links
Closed, ResolvedPublic

Description

Author: wiki

Description:
Template:Measurement-stub is used on http://en.wikipedia.org/wiki/RFC_822. Like all stub templates, this builds up an "edit" link thus:

[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} expanding it]

Unfortunately, when the PAGENAME is of the form "RFC ..." (and presumably ISBN, etc.), then the autolinking of those expressions produces a malformed
result:

<a href="http://en.wikipedia.org/w/index.php?title=RFC_822&amp;action=edit" class='external text' title="http://en.wikipedia.org/w/index.php?

title=&lt;a href='http://www.ietf.org/rfc/rfc822.txt' class='external' title=">RFC 822</a>&amp;action=edit"&gt;expanding it</i>

which the browser renders as (approximately):

RFC 822&action=edit">expanding it.

By the way, where can I find general documentation for these autolinks?


Version: unspecified
Severity: normal
URL: http://en.wikipedia.org/w/index.php?title=RFC_822&oldid=15922184

Details

Reference
bz3415

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:49 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz3415.
bzimport added a subscriber: Unknown Object (MLST).

zigger wrote:

*** This bug has been marked as a duplicate of 1344 ***

ayg wrote:

*** This bug has been marked as a duplicate of 1344 ***