Skip to content
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

Merged
merged 2 commits into from
Jul 20, 2012
Merged

Conversation

arnisoph
Copy link
Contributor

@arnisoph arnisoph commented Mar 8, 2012

No description provided.

@ghost ghost assigned arnisoph Mar 8, 2012
@Linutux
Copy link

Linutux commented May 8, 2012

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>
@arnisoph
Copy link
Contributor Author

Should be solved now. Steps to reproduce:

  1. create email address Foo@foo.tld
  2. create email address foo@foo.tld => FAILS
  3. create email address 123456@foo.tld
  4. create email address 456@foo.tld => FAILS

@Froxlor/froxlor-developers Please check, maybe modfiy and merge/reject

@ghost ghost assigned EleRas May 29, 2012
@Linutux
Copy link

Linutux commented Jun 1, 2012

Commit f957a0a seems fine to me.

All email adresses already in DB should also be converted to lowercase on Froxlor upgrade.

@avengerx
Copy link
Contributor

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

scarya pushed a commit that referenced this pull request Jul 20, 2012
Make check of creating e-mail addresses case-insensitive, thanks to d4f, fixes #1021
@scarya scarya merged commit 68d4264 into froxlor:master Jul 20, 2012
d00p pushed a commit that referenced this pull request Jan 10, 2015
Update portugues.lng.php
@d00p d00p unassigned EleRas Mar 6, 2016
megaspatz referenced this pull request in shsh-de/WErwoLF Jun 2, 2016
Update portugues.lng.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants