Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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))
Comment | File | Size | Author |
---|---|---|---|
user_25.patch | 1.18 KB | kuba.zygmunt | |
Comments
Comment #1
Bèr Kessels CreditAttribution: Bèr Kessels commentedminor isseu. but worth committing.
Though Kuba, why do you change the LOWER() into strtolower in this patch?
Comment #2
Steven CreditAttribution: Steven commentedLooking at the version numbers at the top, I'm pretty sure this was an accident.
Commited to HEAD / 4.6.
Comment #3
Steven CreditAttribution: Steven commentedComment #4
(not verified) CreditAttribution: commentedComment #5
(not verified) CreditAttribution: commentedComment #6
(not verified) CreditAttribution: commentedComment #7
(not verified) CreditAttribution: commentedComment #8
(not verified) CreditAttribution: commented