mirror of
https://github.com/bulwarkmail/native.git
synced 2026-11-01 08:06:13 +00:00
fix: stop crafted .eml headers from stalling the parser by moving to postal-mime 4.2
This commit is contained in:
@@ -4,7 +4,7 @@ import PostalMime from 'postal-mime';
|
||||
// React Native's Blob only takes strings and other Blobs; building one from an
|
||||
// ArrayBuffer or typed array throws. postal-mime used to join every decoded
|
||||
// part through such a Blob, so an .eml with an attachment could not be
|
||||
// previewed on the device (patches/postal-mime+3.0.0.patch).
|
||||
// previewed on the device (patches/postal-mime+4.2.0.patch).
|
||||
class ReactNativeBlob {
|
||||
constructor(parts: unknown[] = []) {
|
||||
if (parts.some((p) => p instanceof ArrayBuffer || ArrayBuffer.isView(p))) {
|
||||
|
||||
@@ -150,7 +150,7 @@
|
||||
},
|
||||
{
|
||||
"name": "postal-mime",
|
||||
"version": "3.0.0",
|
||||
"version": "4.2.0",
|
||||
"license": "MIT-0",
|
||||
"url": "https://postal-mime.postalsys.com"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user