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

String.contains is case sensitive so both participants needs to be lo… #326

Conversation

derTobsch
Copy link
Contributor

…wercase

String.contains is case sensitive and so both participants needs to be lowercased or not, otherwise if the domain has a uppercase value the result of tos.toLowerCase().contains(domain) will be false in every case.

See the getReceivedMessagesForDomainWithUpperCaseRecipientAddress test if you remove domain.toLowerCase() the test will fail.

@marcelmay marcelmay self-assigned this Jun 21, 2020
@marcelmay marcelmay added the bug label Jun 21, 2020
@marcelmay marcelmay added this to the 1.5.14 milestone Jun 21, 2020
@marcelmay marcelmay merged commit b31c4e7 into greenmail-mail-test:master Jun 21, 2020
@marcelmay
Copy link
Member

Thx again!

@derTobsch derTobsch deleted the bug/string-contains-is-case-sensitive branch June 21, 2020 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants