Changeset 9279

Show
Ignore:
Timestamp:
08/18/08 12:51:21 (4 months ago)
Author:
afz
Message:

check username characters is valid

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/0.8/jaws/html/gadgets/Users/AdminAjax.php

    r8877 r9279  
    118118        } 
    119119 
     120        //Check username 
     121        if (!preg_match('/^[a-z0-9]+$/i', $username) || strlen($username) < 3) { 
     122            $GLOBALS['app']->Session->PushLastResponse(_t('USERS_REGISTER_USERNAME_NOT_VALID'), RESPONSE_ERROR); 
     123            return $GLOBALS['app']->Session->PopLastResponse(); 
     124        } 
     125 
    120126        if ($type == 0 && $GLOBALS['app']->Session->IsSuperAdmin() === false) { 
    121127            $type = 1;