[drupal-devel] [bug] bad validation function

kubaZygmunt drupal-devel at drupal.org
Thu Jul 28 16:08:34 UTC 2005


Issue status update for 
http://drupal.org/node/27694
Post a follow up: 
http://drupal.org/project/comments/add/27694

 Project:      Drupal
 Version:      cvs
 Component:    user.module
 Category:     bug reports
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  kubaZygmunt
 Updated by:   kubaZygmunt
 Status:       patch
 Attachment:   http://drupal.org/files/issues/user_25.patch (1.18 KB)

When you put 0 (zero) as user name (in registration process, or editing
profile)  you will got error message 'You must enter a username'
We've got this because in code we have : if (!$name) , instead we
should check : if (!strlen($name))




kubaZygmunt




More information about the drupal-devel mailing list