This repository has been archived by the owner on Jan 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 136
Remove IDNA conversion of local-part #66
Closed
Closed
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
268b66a
Remove IDNA conversion of local-part
BreyndotEchse 4678f59
IDNA conversion of hostname
BreyndotEchse dad47b9
Remove wrong IDNA tests
BreyndotEchse 3c69947
Keep IDNA hostname in property to work with
BreyndotEchse 983fd5e
Add tests for adressess with UTF-8 characters
BreyndotEchse 22c7f1b
Replace IANA test TLD with normal TLD
BreyndotEchse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -220,7 +220,7 @@ public function testEmailDisplay() | |
public function validEmailAddresses() | ||
{ | ||
// @codingStandardsIgnoreStart | ||
return [ | ||
$return = [ | ||
'[email protected]' => ['[email protected]'], | ||
'[email protected]' => ['[email protected]'], | ||
'[email protected]' => ['[email protected]'], | ||
|
@@ -232,6 +232,13 @@ public function validEmailAddresses() | |
'bob@verylongdomainsupercalifragilisticexpialidociousspoonfulofsugar.com' => ['bob@verylongdomainsupercalifragilisticexpialidociousspoonfulofsugar.com'], | ||
"B.O'[email protected]" => ["B.O'[email protected]"], | ||
]; | ||
|
||
if (extension_loaded('intl')) { | ||
$return['bob@موقع.إختبار'] = ['bob@موقع.إختبار']; | ||
$return['[email protected]'] = ['[email protected]']; | ||
} | ||
|
||
return $return; | ||
// @codingStandardsIgnoreEnd | ||
} | ||
|
||
|
@@ -269,6 +276,7 @@ public function invalidEmailAddresses() | |
'bob @ domain.com' => ['bob @ domain.com'], | ||
'[email protected]' => ['[email protected]'], | ||
'"bob%[email protected]' => ['"bob%[email protected]'], | ||
'иван@письмо.рф' => ['иван@письмо.рф'], | ||
'multiline' => ['bob | ||
|
||
@domain.com'], | ||
|
@@ -741,8 +749,8 @@ public function testUseMxCheckBasicValid() | |
]; | ||
|
||
if (extension_loaded('intl')) { | ||
$emailAddresses[] = 'иван@письмо.рф'; | ||
$emailAddresses[] = 'xn--@-7sbfxdyelgv5j.xn--p1ai'; | ||
$emailAddresses[] = 'test@письмо.рф'; | ||
$emailAddresses[] = 'test@xn--h1aigbl0e.xn--p1ai'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You say the issue is in the local part, so why change the domain part? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because
prints
|
||
} | ||
|
||
foreach ($emailAddresses as $input) { | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've merged #67 at this point, and just attempted to merge this PR. When running tests, both of these specific cases fail, each with:
I'm not sure if that's expected at this point, and you have more work to do, or if there's another, more subtle issue.