Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

[validator] Validate quoted local part of email addresses #4793

Closed
wants to merge 2 commits into from
Closed

[validator] Validate quoted local part of email addresses #4793

wants to merge 2 commits into from

Conversation

Maks3w
Copy link
Member

@Maks3w Maks3w commented Jul 8, 2013

Test and fix for validate quoted local parts following the RFC 5321

This should be backported to ZF1

 Test for validate quoted local parts following the RFC 5321
$noWsCtl = '\x01-\x08\x0b\x0c\x0e-\x1f\x7f';
$qtext = $noWsCtl . '\x21\x23-\x5b\x5d-\x7e';
$ws = '\x20\x09';
if (preg_match('/^\x22([' . $ws . $qtext . '])*[$ws]?\x22$/', $this->localPart)) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The [$ws] bug is the source for review this part of the code, that text is a dead code since is not surrounded by double quotes

weierophinney added a commit that referenced this pull request Jul 19, 2013
[validator] Validate quoted local part of email addresses
weierophinney added a commit that referenced this pull request Jul 19, 2013
@ghost ghost assigned weierophinney Jul 19, 2013
weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
…x/mail-validator

[validator] Validate quoted local part of email addresses
weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants