Skip to content

ensure we do not parse email strings permissively #766

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/draft-next/optional/format/email.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@
"description": "an invalid IPv4-address-literal",
"data": "joe.bloggs@[127.0.0.300]",
"valid": false
},
{
"description": "two email addresses is not valid",
"data": "[email protected], [email protected]",
"valid": false
},
{
"description": "full \"From\" header is invalid",
"data": "\"Winston Smith\" <[email protected]> (Records Department)",
"valid": false
}
]
}
Expand Down
10 changes: 10 additions & 0 deletions tests/draft2019-09/optional/format/email.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@
"description": "two subsequent dots inside local part are not valid",
"data": "[email protected]",
"valid": false
},
{
"description": "two email addresses is not valid",
"data": "[email protected], [email protected]",
"valid": false
},
{
"description": "full \"From\" header is invalid",
"data": "\"Winston Smith\" <[email protected]> (Records Department)",
"valid": false
}
]
}
Expand Down
10 changes: 10 additions & 0 deletions tests/draft2020-12/optional/format/email.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@
"description": "an invalid IPv4-address-literal",
"data": "joe.bloggs@[127.0.0.300]",
"valid": false
},
{
"description": "two email addresses is not valid",
"data": "[email protected], [email protected]",
"valid": false
},
{
"description": "full \"From\" header is invalid",
"data": "\"Winston Smith\" <[email protected]> (Records Department)",
"valid": false
}
]
}
Expand Down
10 changes: 10 additions & 0 deletions tests/draft3/optional/format/email.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@
"description": "two subsequent dots inside local part are not valid",
"data": "[email protected]",
"valid": false
},
{
"description": "two email addresses is not valid",
"data": "[email protected], [email protected]",
"valid": false
},
{
"description": "full \"From\" header is invalid",
"data": "\"Winston Smith\" <[email protected]> (Records Department)",
"valid": false
}
]
}
Expand Down
10 changes: 10 additions & 0 deletions tests/draft4/optional/format/email.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@
"description": "two subsequent dots inside local part are not valid",
"data": "[email protected]",
"valid": false
},
{
"description": "two email addresses is not valid",
"data": "[email protected], [email protected]",
"valid": false
},
{
"description": "full \"From\" header is invalid",
"data": "\"Winston Smith\" <[email protected]> (Records Department)",
"valid": false
}
]
}
Expand Down
10 changes: 10 additions & 0 deletions tests/draft6/optional/format/email.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@
"description": "two subsequent dots inside local part are not valid",
"data": "[email protected]",
"valid": false
},
{
"description": "two email addresses is not valid",
"data": "[email protected], [email protected]",
"valid": false
},
{
"description": "full \"From\" header is invalid",
"data": "\"Winston Smith\" <[email protected]> (Records Department)",
"valid": false
}
]
}
Expand Down
10 changes: 10 additions & 0 deletions tests/draft7/optional/format/email.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@
"description": "two subsequent dots inside local part are not valid",
"data": "[email protected]",
"valid": false
},
{
"description": "two email addresses is not valid",
"data": "[email protected], [email protected]",
"valid": false
},
{
"description": "full \"From\" header is invalid",
"data": "\"Winston Smith\" <[email protected]> (Records Department)",
"valid": false
}
]
}
Expand Down
Loading