Page MenuHomePhabricator

Unicode directionality marker causes parentheses error in edit summary
Closed, InvalidPublic

Description

Author: core

Description:
Parenthesis facing the wrong way in this diff:

http://simple.wikipedia.org/w/index.php?title=Xenu&diff=prev&oldid=1698000


Version: unspecified
Severity: minor
URL: http://simple.wikipedia.org/w/index.php?title=Xenu&diff=prev&oldid=1698000

Details

Reference
bz20360

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:57 PM
bzimport set Reference to bz20360.
bzimport added a subscriber: Unknown Object (MLST).

There doesn't seem to be any bug here. Someone inserted unicode directionality mark and the rest is the result of unicode bidi algorithm doing its horrors. Display could perhaps be improved with adding embedding block inside the parenthesis.

sumanah wrote:

diff description/summary on right has two left parens instead of a left and a right

Still reproducible in 1.18wmf1.

Attached:

parentheses-wrong.png (110×1 px, 19 KB)

sumanah wrote:

The edit summary as listed in the revision history:

(cur | last) 00:20, 23 August 2009‎ Apples grow on pines (talk | changes)‎ (2,274 bytes) (‮) (undo)

sumanah wrote:

revision history displaying the problematic edit summary

Hmm, in MediaWiki it looked more like:

<i>(</i>(odnu) <i>(</i>

Attaching screenshot.

Attached:

parens-wrong.png (28×964 px, 8 KB)

As Niklas says, there's the Right-to-Left Overrirde (RLO) character here. It's pointless, but that's what it does - it forces all text to be right-to-left. It's not a MediaWiki bug by itself.

Such characters are already prohibited in page titles and it may make sense to prohibit them in edit summaries, too.

This is not a bug in mediawiki, hence - closing as invalid.