-
-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make check of creating e-mail addresses case-insensitive, thanks to d4f, fixes #1021 #4
Conversation
I think your code has a major problem: If I have created 123456@fqdn.tld and I want to add 3456@fqdn.tld it will fail because LIKE also matches 123456@fqdn.tld. I instead recommend to convert all e-mail adresses to lower-case before doing any query. |
…heck if address is not already in use, instead of comparing with LIKE-operator, fixes #1021 Signed-off-by: Arnold Bechtoldt <mail@arnoldbechtoldt.com>
Should be solved now. Steps to reproduce:
@Froxlor/froxlor-developers Please check, maybe modfiy and merge/reject |
Commit f957a0a seems fine to me. All email adresses already in DB should also be converted to lowercase on Froxlor upgrade. |
I wonder without detailed code investigating... is not a better idea to make sure there's a strtolower before 'insert into mail_user' and 'insert into mail_virtual' in customer_email.php? So this kind of problem would be reproductible only if someone added the email into the database by hand? Is it desirable to have a "Foo@" email in the database instead of plain lowercase "foo@" regardless of how user typed during creation? I think that fixing it where it is fixed is needed but still the database will be subject to having more uppercase emails thus future errors will happen again and again elsewhere in froxlor. :) |
Make check of creating e-mail addresses case-insensitive, thanks to d4f, fixes #1021
No description provided.