diff options
author | Craig Andrews <candrews@integralblue.com> | 2010-02-26 15:50:35 -0500 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2010-02-26 15:51:25 -0500 |
commit | 410cd524344e632bbb876578e1d816511095a55c (patch) | |
tree | d85747e0049d470f06aacef4dccd3e4b29056a25 /classes/User.php | |
parent | 9b366547d743b9c85455e02cae2f84a658a4baf2 (diff) |
bail out if the requested nickname is illegal
Diffstat (limited to 'classes/User.php')
-rw-r--r-- | classes/User.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/User.php b/classes/User.php index 10b1f4865..e0f0d87d1 100644 --- a/classes/User.php +++ b/classes/User.php @@ -206,6 +206,7 @@ class User extends Memcached_DataObject if(! User::allowed_nickname($nickname)){ common_log(LOG_WARNING, sprintf("Attempted to register a nickname that is not allowed: %s", $profile->nickname), __FILE__); + return false; } $profile->profileurl = common_profile_url($nickname); |