HomePhabricator

Use User::isValidUserName() for validation checking

Authored by Legoktm.

Description

Use User::isValidUserName() for validation checking

User::getCanonicalName() does some normalization, like stripping additional
namespace prefixes, which we don't want. MediaWiki will have already done
normalization, so just check that it is valid.

Bug: T91029
Change-Id: Ic7799dea9c2aa0c7f3a3e5b643ffe020db42d5e5

Details