[drupal-devel] [bug] bad validation function

Bèr Kessels drupal-devel at drupal.org
Thu Jul 28 16:34:30 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:   Bèr Kessels
 Status:       patch

minor isseu. but  worth committing.


Though Kuba, why do you change the LOWER() into strtolower in this
patch?




Bèr Kessels



Previous comments:
------------------------------------------------------------------------

Thu, 28 Jul 2005 16:08:22 +0000 : kubaZygmunt

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