User tests: Successful: Unsuccessful:
Weird that nobody saw that for so long... See the original .diff here:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=29997
http://joomlacode.org/gf/download/trackeritem/29997/78299/%32%39%39%39%37%2e%64%69%66%66
Test validating various emails.
Title |
|
Title |
|
||||||
Labels |
Added:
?
|
Title |
|
Tested and merged into staging
. Thanks!
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-10-22 10:20:42 |
@test Ok, but with some observations.
Cases from here: http://blogs.msdn.com/b/testing123/archive/2009/02/05/email-address-test-cases.aspx
** Valid Email address Reason
OK email@domain.com Valid email
OK firstname.lastname@domain.com Email contains dot in the address field
OK email@subdomain.domain.com Email contains dot with subdomain
OK firstname+lastname@domain.com Plus sign is considered valid character
OK email@123.123.123.123 Domain is valid IP address
ERROR email@[123.123.123.123] Square bracket around IP address is considered valid
ERROR "email"@domain.com Quotes around email is considered valid
OK 1234567890@domain.com Digits in address are valid
OK email@domain-one.com Dash in domain name is valid
OK _______@domain.com Underscore in the address field is valid
OK email@domain.name .name is valid Top Level Domain name
OK email@domain.co.jp Dot in Top Level Domain name also considered valid (use co.jp as example here)
OK firstname-lastname@domain.com Dash in address field is valid
** Invalid Email address Reason
OK plainaddress Missing @ sign and domain
OK #@%^%#$@#$@#.com Garbage
OK @domain.com Missing username
OK Joe Smith email@domain.com Encoded html within email is invalid
OK email.domain.com Missing @
OK email@domain@domain.com Two @ sign
OK .email@domain.com Leading dot in address is not allowed
OK email.@domain.com Trailing dot in address is not allowed
ERROR email..email@domain.com Multiple dots
OK あいうえお@domain.com Unicode char as address
OK email@domain.com (Joe Smith) Text followed email is not allowed
OK email@domain Missing top level domain (.com/.net/.org/etc)
OK email@-domain.com Leading dash in front of domain is invalid
ERROR email@domain.web .web is not a valid top level domain
ERROR email@111.222.333.44444 Invalid IP format
OK email@domain..com Multiple dot in the domain portion is invalid
Well, I'm not that good at crafting Regex. What was the expected behaviour? Because I cannot see what are the rules for validating email addresses here. It looks quite flexible.
Current and future new extensions: #4135 (comment)
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4894.
Milestone |
Milestone |
Milestone |
Added: |
Milestone |
Added: |
Milestone |
Test with a mail of type: myname39997@travel.travel