[drupal-devel] [bug] bad validation function

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

Issue status update for 
Post a follow up: 

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


More information about the drupal-devel mailing list