Page MenuHomePhabricator

"RFC xxx" is converted into an external link, even within a wikilink
Closed, ResolvedPublic

Description

Author: wmahan_04

Description:
In Parser.php, the magicRFC() function cleverly converts text like "RFC 1149"
into an external link. Unfortunately, this breaks wikilinks to RFCs like [[RFC
1149]].

Maybe the magic RFC code should be removed altogether, or made optional; it
seems to be a somewhat esoteric case. For Wikipedia, the generally accepted
style is to put external links at the end of an article, rather than embedding
them within the article. If someone wants to link to the full text of an RFC, I
don't think it would be too difficult to do it by hand, as with any other
external link.


Version: unspecified
Severity: minor
OS: Linux
Platform: PC

Details

Reference
bz479

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 7:08 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz479.

I fixed it in HEAD. Will be made available in version 1.4

river wrote:

Now backported to 1.3.

jeluf wrote:

[[RFC 822]] links work, but RFC 822 doesn't work any more.

wmahan_04 wrote:

Fixed in HEAD, and I added some parser test cases for magic RFC links. In 1.3
everything appears to work as well.