Merge "Prevent new accounts from using = in their usernames"

This commit is contained in:
jenkins-bot 2022-12-04 05:51:44 +00:00 committed by Gerrit Code Review
commit 812befc34a
4 changed files with 6 additions and 3 deletions

View file

@ -41,6 +41,9 @@ For notes on 1.39.x and older releases, see HISTORY.
length from 1 to 8 characters. The initial limit of 1 has been in place since
MediaWiki 1.26. If you wish to allow shorter passwords, you can over-ride it
in your LocalSettings following the guidance on MediaWiki.org.
* (T254045) New accounts can no longer use an equals sign (=) in their
usernames because of issues it causes in wikitext syntax. This can be
adjusted by changing the value of $wgInvalidUsernameCharacters.
* …
==== Removed configuration ====

View file

@ -4659,7 +4659,7 @@ config-schema:
type: array
description: 'An array of preferences to not show for the user'
InvalidUsernameCharacters:
default: '@:>'
default: '@:>='
description: |-
Characters to prevent during new account creations.
This is used in a regular expression character class during

View file

@ -7333,7 +7333,7 @@ class MainConfigSchema {
* registration (regex metacharacters like / are escaped).
*/
public const InvalidUsernameCharacters = [
'default' => '@:>',
'default' => '@:>=',
];
/**

View file

@ -1077,7 +1077,7 @@ return [
],
'HiddenPrefs' => [
],
'InvalidUsernameCharacters' => '@:>',
'InvalidUsernameCharacters' => '@:>=',
'UserrightsInterwikiDelimiter' => '@',
'SecureLogin' => false,
'AuthenticationTokenVersion' => null,