Page MenuHomePhabricator

mediawiki-title package (likely) does not support $wgIllegalFileChars
Closed, DeclinedPublic

Description

As it turns out, the set of legal title characters is somewhat smaller after a File: prefix. See T196480 for an example from mediawiki.Title.js.

We should take into account $wgIllegalFileChars -- since that's not exported in siteinfo, and ideally will not remain a configurable option (T297340), we can just hard code the value and ban colon, forward slash, and backslach.

See T343046: Parsoid's title library does not support $wgIllegalFileChars for the same bug filed against Parsoid.

Event Timeline

As part of the decommission of Mobile-Content-Service, this task is no longer valid. See T328036 for reference.
If you believe this is reproducible as part of Page Content Service nowadays used, please reach out to Content-Transform-Team. Thanks.