Page MenuHomePhabricator

mediawiki.Title should not convert extensions (anything after the last full stop) to lower case
Closed, ResolvedPublic

Description

Qunit test

mediawiki.Title.js converts the extension (or what it thinks is the extension) to lowercase. This is only a good thing when you want to normalize user input for a new file, if you want to get information about an already existing file or the page is in some other namespace, converting things behind a dot to lowercase is the wrong behavior.

The patch adds a qunit test that fails at the moment, since "User:ABC.DEF" is converted to "User:ABC.def".


Version: 1.18.x
Severity: normal

Attached:

Details

Reference
bz30843

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:52 PM
bzimport set Reference to bz30843.

MediaWiki doesn't convert extension as far as I know, so we shoudn't be doing this in JS either. Especially not for random suffixes that aren't to be recognized as extensions.

Test added in r97405.

Bug fixed in r97406.