mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
#89 Redesign HTML parsing for securing PGP decrypted HTML
This commit is contained in:
parent
d9e81d6123
commit
6b26ddec7a
6 changed files with 227 additions and 195 deletions
|
|
@ -32,7 +32,7 @@ export class AttachmentCollectionModel extends AbstractCollectionModel
|
|||
* @returns {*}
|
||||
*/
|
||||
findByCid(cid) {
|
||||
cid = cid.replace(/^<+|>+$/, '');
|
||||
return this.find(item => cid === item.cidWithoutTags);
|
||||
let regex = /^<+|>+$/g, cidc = cid.replace(regex, '');
|
||||
return this.find(item => cid === item.cid || cidc === item.cid || cidc === item.cid.replace(regex, ''));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue