From: Craig Andrews Date: Fri, 26 Feb 2010 20:50:35 +0000 (-0500) Subject: bail out if the requested nickname is illegal X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=410cd524344e632bbb876578e1d816511095a55c;p=quix0rs-gnu-social.git bail out if the requested nickname is illegal --- diff --git a/classes/User.php b/classes/User.php index 10b1f48651..e0f0d87d1a 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);