mw.Title: Use $wgIllegalFileChars for file title checking
authorBartosz Dziewoński <matma.rex@gmail.com>
Sun, 24 Jul 2016 20:28:56 +0000 (22:28 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sat, 30 Jul 2016 17:40:29 +0000 (19:40 +0200)
commitb8a840974455ec58dfb395f30d6e6e54980856e0
treedd067dbc18767038e3f34a82031c6472b90a909f
parentea43031b39e9951c8cb9a32abc9610f77618d83a
mw.Title: Use $wgIllegalFileChars for file title checking

mw.Title.newFromFileName() will now correctly use $wgIllegalFileChars,
rather than partially and incorrectly duplicating it.

$wgIllegalFileChars is currently defined to contain ':', '/' and '\'.
Previously we incorrectly did not filter out backslashes '\'. The hash
'#' is already disallowed by $wgLegalTitleChars.

Bug: T140222
Change-Id: I17e3ef61e04ae002ef576c9416c8f265ee000e89
includes/resourceloader/ResourceLoaderStartUpModule.php
resources/src/mediawiki/mediawiki.Title.js