forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-66762 user: stricter email validation.
- Loading branch information
1 parent
d6c704b
commit eb9f830
Showing
2 changed files
with
13 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -525,6 +525,18 @@ public function data_validate_email() { | |
'email' => "[email protected]>\r\nRCPT TO:<[email protected]", | ||
'result' => false | ||
], | ||
[ | ||
'email' => 'greater>[email protected]', | ||
'result' => false | ||
], | ||
[ | ||
'email' => 'less<[email protected]', | ||
'result' => false | ||
], | ||
[ | ||
'email' => '"this<is>validbutwerejectit"@example.com', | ||
'result' => false | ||
], | ||
|
||
// Extra email addresses from Wikipedia page on Email Addresses. | ||
// Valid. | ||
|
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