-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
[RTM] Fix Validator::isEmail(). #313
Conversation
I have no idea why the unit test is failing, I did NOT tamper with the
EDIT: I did not have my master rebased to upstream. Have done so now but did not solve the issue. |
e073498
to
9343cfc
Compare
I like the idea of using |
|
Can you elaborate on your changes to the |
The changes in Idna were necessary as it was breaking valid email adresses. I just stumbled upon this bug while writing unit tests before I started implementing any validation. Imagine the valid address: For details, have a look at this unit test The only thing is, that it does also accept clearly broken e-mails for encoding but it was doing so before and coders will most likely call |
Merged in e873076. |
Back ported in contao/core@ad169aa. |
* Add Serbian language files. Version 3.5.2 (2015-07-24) -------------------------- ### Fixed Revert some of the PhpStorm code inspector changes (see #7937). Version 3.5.1 (2015-07-24) -------------------------- ### Fixed Add a `StringUtil` class to restore PHP 7 compatibility (see contao/core-bundle#309). ### Fixed Fix the `Validator::isEmail()` method (see contao/core-bundle#313). ### Fixed Strip tags before auto-generating aliases (see #7857). ### Fixed Correctly encode the URLs in the popup file manager (see #7929). ### Fixed Check for the comments module when compiling the news meta fields (see #7901). ### Fixed Also sort the newsletter channels alphabetically in the front end (see #7864). ### Fixed Disable responsive images in the back end preview (see #7875). ### Fixed Overwrite the request string when generating news/event feeds (see #7756). ### Fixed Store the static URLs with the cached file (see #7914). ### Fixed Correctly check the subfolders in the `hasAccess()` method (see #7920). ### Fixed Updated the countries list (see #7918). ### Fixed Respect the `notSortable` flag in the parent (see #7902). ### Fixed Round the maximum upload size to an integer value (see #7880). ### Fixed Make the markup minification less aggressive (see #7734). ### Fixed Filter the indices in `Database::getFieldNames()` (see #7869). ### Fixed Back-ported two fixes from the upstream versions.
This PR utilizes the PHP
filter_var()
method for validating email addresses and fixes a Bug in the Idna class.For details, refer to contao/core#7783.
This should be backported to 3.5.