diff options
author | Sem <sembrestels@riseup.net> | 2012-07-01 23:20:47 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-07-01 23:20:47 +0200 |
commit | 671f9ba4e1b1972d8eaf22acfb626fa2c85af0f2 (patch) | |
tree | 436b0de846650bce13436b51a2d5214224f8898c /engine/lib/users.php | |
parent | 3da3f2aa28a42c23bdc9d661e7e13fd6f2bd2b10 (diff) | |
parent | b91d8bb0fea5cef9fafea72181a0007cfaa54725 (diff) | |
download | elgg-671f9ba4e1b1972d8eaf22acfb626fa2c85af0f2.tar.gz elgg-671f9ba4e1b1972d8eaf22acfb626fa2c85af0f2.tar.bz2 |
Upgraded to Elgg 1.8.6.
Merge tag '1.8.6' of git://github.com/Elgg/Elgg into lorea-preprod
Elgg 1.8.6 release
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r-- | engine/lib/users.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index e209f2c38..241b524f9 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -810,6 +810,12 @@ function validate_username($username) { $msg = elgg_echo('registration:usernametooshort', array($CONFIG->minusername)); throw new RegistrationException($msg); } + + // username in the database has a limit of 128 characters + if (strlen($username) > 128) { + $msg = elgg_echo('registration:usernametoolong', array(128)); + throw new RegistrationException($msg); + } // Blacklist for bad characters (partially nicked from mediawiki) $blacklist = '/[' . @@ -1556,7 +1562,7 @@ function users_init() { elgg_register_action('friends/remove'); elgg_register_action('avatar/upload'); elgg_register_action('avatar/crop'); - elgg_register_action('avatar/revert'); + elgg_register_action('avatar/remove'); elgg_register_action('profile/edit'); elgg_register_action('friends/collections/add'); |