Make Gender normalize usernames
authorBrian Wolff <bawolff+wn@gmail.com>
Sun, 17 Dec 2017 22:12:06 +0000 (22:12 +0000)
committerBrian Wolff <bawolff+wn@gmail.com>
Mon, 22 Jan 2018 23:12:01 +0000 (23:12 +0000)
commit5fd1e1abe0ef9e7c810a9c72fbb9104461c4e331
treea70ff694276260e028cc59b06e6ae4e072743ca4
parent7084c1e9f41b592f9a63114e2a279e4ccd237cac
Make Gender normalize usernames

This ensures that if GENDER is fed wfEscapeWikitext()'d version
of a username, it will normalize it.

See discussion on T182800.

Note, we do not need to worry about the case of a user named
"Project:*foo" as such namespace prefixes are illegal in
usernames.

Change-Id: Ic5a8fc76c28dca43ce8e334ef1874c2673433f00
includes/parser/CoreParserFunctions.php
tests/phpunit/includes/parser/CoreParserFunctionsTest.php [new file with mode: 0644]