php - Why does filter_var($email, FILTER_VALIDATE_EMAIL) allow test@test? -


I was just setting up the verification for the form in which I used the filter_var function to check my verification Attempted email address I do not know if filter_var actually allows anywhere (because the documentation is very simple), and I found out that it is allowing an email address like test @ test. Do not have to have a .com, .net etc ... in the domain?

See behavior has changed somewhere around April and.

This e-mail is actually invalid, or at least this is what the PHP developers think is the source:

  / * * Below are regex Michael Based on a regex by Rushton * However, this is not the same, I've considered it only by treating the path * addresses as valid. Michael's Reggae considers an @B as a valid address * that fights with section 2.3.5 of RFC 5321, which states that: * * Only the claimant, the full-qualified domain name (FQDN) is allowed * when In other words, names that are * MX RR or address (i.e. AAAAA) RR (as discussed in section 5) can be solved, such as CNA RR, whose domain names are used in SMTP. Goal * Resolve In return, MX or address RRS local alias or * ineligible names should not be used.  

This bug fixes for PHP 5.3.3 and PHP 5.2.14.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -