@ronomon/mime
Advanced tools
Comparing version 2.9.1 to 2.10.1
{ | ||
"name": "@ronomon/mime", | ||
"version": "2.9.1", | ||
"version": "2.10.1", | ||
"description": "Fast, robust, standards-compliant MIME decoder. Ships with extensive tests and fuzz tests.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -28,2 +28,33 @@ var common = require('./_common.js'); | ||
null | ||
], | ||
[ | ||
'Fake <trusted@sender.com> <fake@scam.com>', | ||
[ | ||
{ | ||
// Multiple angle-addr's should never occur and are suspicious: | ||
// We split an address on angle brackets outside quotes. | ||
// This means that the pseudo address which will end up part of the name | ||
// will lose its angle brackets, and at first glance, it might seem that | ||
// we are causing user data to be lost. | ||
// However, if angle brackets exist outside quotes, there should only | ||
// be a single pair in terms of the spec, because there can only be one | ||
// angle-addr, and a phrase atom cannot contain angle brackets. | ||
// Therefore, removing the extra angle brackets is not a problem, since | ||
// the case is already exceptional. | ||
// TO DO: We should probably detect and reject multiple angle-addr's. | ||
name: 'Fake trusted@sender.com', | ||
email: 'fake@scam.com' | ||
} | ||
], | ||
null | ||
], | ||
[ | ||
'"QuotedFake <trusted@sender.com>" <fake@scam.com>', | ||
[ | ||
{ | ||
name: 'QuotedFake <trusted@sender.com>', | ||
email: 'fake@scam.com' | ||
} | ||
], | ||
null | ||
] | ||
@@ -30,0 +61,0 @@ ]; |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
249885
7772