Bug #60771

Email addresses not validated against RFC 6531

Added by Mathias Brodala over 5 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Miscellaneous
Target version:
-
Start date:
2014-08-04
Due date:
% Done:

0%

TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The validation in GeneralUtility::validEmail does not comply with RFC 6531.

Since PHP's filter_var + FILTER_VALIDATE_EMAIL doesn't either, we need to convert the user/local part to Punycode, too.

History

#1 Updated by Frank Naegler about 5 years ago

that will be a big task. The RFC 6531 is so complex. I think a RegExp which will validate to the RFC 6531 is impossible to write.

#2 Updated by Mathias Brodala about 5 years ago

Frank N├Ągler wrote:

that will be a big task. The RFC 6531 is so complex. I think a RegExp which will validate to the RFC 6531 is impossible to write.

My preferred RegEx is this one: ".+@.+". ;-) But I've already suggested conversion to Punycode, there's no need to change a Regex anywhere.

#3 Updated by Mathias Schreiber about 4 years ago

  • Target version deleted (next-patchlevel)

#4 Updated by Christian Kuhn over 2 years ago

  • Status changed from New to Closed

i guess we can live with the current implementation now.

Also available in: Atom PDF