Enhancement #3209

email validation function evalEmail()

Added by Boris DE ANDRADE over 3 years ago. Updated over 2 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:NethServer 6 - v6.7
Resolution:REJECTED NEEDINFO:No

Description

The email validation function uses several regex to filter emails.
Maybe we could use the native php function "filter_var" with the "FILTER_VALIDATE_EMAIL" filter? which is following the RFC 5322

It would answer to some needs , like the "+" char.

Attached, a suggestion of improvement to the function evalEmail()

http://www.rfc-editor.org/rfc/rfc5322.txt @ 3.4. Address Specification

patch_Validator.php.patch Magnifier (1.33 KB) Boris DE ANDRADE, 07/01/2015 06:53 PM


Related issues

Related to NethServer 6 - Enhancement #2673: Permit special character into pseudonym CLOSED

History

#2 Updated by Boris DE ANDRADE over 3 years ago

  • File deleted (patch_Validator.php.patch)

#4 Updated by Giacomo Sanchietti about 3 years ago

  • Target version deleted (v6.6)

#5 Updated by Davide Principi over 2 years ago

  • Status changed from NEW to CLOSED
  • Target version set to v6.7
  • % Done changed from 0 to 100
  • Resolution set to REJECTED

Thanks for the patch Boris, we're going to implement your patch for NethServer 7. This issue is moved on

https://github.com/NethServer/dev/issues/5040

#6 Updated by Davide Principi about 2 years ago

Also available in: Atom PDF