]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
bail out if the requested nickname is illegal
authorCraig Andrews <candrews@integralblue.com>
Fri, 26 Feb 2010 20:50:35 +0000 (15:50 -0500)
committerCraig Andrews <candrews@integralblue.com>
Fri, 26 Feb 2010 20:51:25 +0000 (15:51 -0500)
classes/User.php

index 10b1f486513a4bb5b38ecc5c48d4f8e371c5b684..e0f0d87d1a68faa12368c7ff72b691ddc062eff0 100644 (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);