Page MenuHomePhabricator

VisualEditor: Invalid titles for link target are not detected by link editor (e.g. "Foo{}bar" is allowed)
Closed, ResolvedPublic


Especially those break wikitext.

Version: unspecified
Severity: normal
See Also:



Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 11:59 PM
bzimport set Reference to bz33094.


The editor should not allow [// links to invalid titles].

Not sure if new inspector blocks this?

Mass-moving items into VisualEditor product

Mass-move out of "General" to init.

Looks like a job for mw.Title in core.

It needs better validation. If static validation is not 100% waterproof we could built in a "extra sure" mode in mw.Title that makes an API request.

Fixed in similarly to the way wikiEditor checks for invalid page titles

Would be better handled in mw.Title.

Change 77099 had a related patch set uploaded by Esanders:
Prevent the creation of invalid MWInternalLinks

Change 77099 merged by jenkins-bot:
Prevent the creation of invalid MWInternalLinks

Fixed again. Sorry, everyone. Will be deployed to tomorrow, and we'll get it deployed more widely after testing.