Page MenuHomePhabricator

Strip directionality characters from wikilinks
Closed, ResolvedPublic

Description

Author: rickblock

Description:
A mystery fairly commonly reported at the en WP:VPT is caused by users copying an article or category name and pasting it into a
link but accidentally picking up a bidi directionality indicator in the copy. Since these characters are invisible, users are often
confused why the resultant link shows as a red link rather than a blue link. I'm not sure it's completely safe to do this, but
should we consider stripping bidi indicators that are inside wikilinks (perhaps only if adjacent to a pipe or the opening or closing
brackets) when an edit is submitted?


Version: unspecified
Severity: enhancement
URL: http://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_%28technical%29

Details

Reference
bz8124

Event Timeline

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

ayg wrote:

Yeah, invisible characters are evil. Any in wikilinks or similar stuff should
probably be auto-stripped, whether on save or render (render would probably be
simpler).

robchur wrote:

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