Page MenuHomePhabricator

Username invalid due to '[' ']' characters
Closed, InvalidPublic

Description

Author: pileggi

Description:
On the alliedmods wiki, I receive the error "Login error
You have not specified a valid user name" when trying to log in with a username containing '[' and ']'.

The username is registered on the alliedmods forum, and I am told any account on the forum should have access to log-in and edit the wiki as well.

Thus it would appear I am unable to log in to the Wiki because my username contains abnormal characters.


Version: unspecified
Severity: minor
URL: http://wiki.alliedmods.net

Details

Reference
bz20421

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:48 PM
bzimport set Reference to bz20421.
bzimport added a subscriber: Unknown Object (MLST).

This is correct, [ and ] are not allowed for page names, so you can't create an account containing them in its name. The plugin that allows you to log in with your forum's account should be updated to handle that.

Marking this INVALID. Error with custom site extension (nothing's listed on http://wiki.alliedmods.net/Special:Version, so it's not one from our SVN ones).

To the reporter: I suggest talking to your site administrators and tell them that their plugin needs to check that a username is a valid Title object (pass the usernames to Title::newFromText()) before attempting a login. As comment #1 notes, [] is invalid in titles (and thus usernames) in MediaWiki.