bail out if the requested nickname is illegal

This commit is contained in:
Craig Andrews 2010-02-26 15:50:35 -05:00
parent 9b366547d7
commit 410cd52434

View File

@ -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);