mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +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
6
dev/External/SquireUI.js
vendored
6
dev/External/SquireUI.js
vendored
|
|
@ -80,7 +80,7 @@ const
|
|||
};
|
||||
} else if (!isHtml && prevSignature.isHtml) {
|
||||
prevSignature = {
|
||||
body: rl.Utils.htmlToPlain(prevSignature.body),
|
||||
body: clearHtmlLine(prevSignature.body),
|
||||
isHtml: true
|
||||
};
|
||||
}
|
||||
|
|
@ -479,7 +479,7 @@ class SquireUI
|
|||
let cl = this.container.classList;
|
||||
cl.remove('squire-mode-'+this.mode);
|
||||
if ('plain' == mode) {
|
||||
this.plain.value = rl.Utils.htmlToPlain(this.squire.getHTML(), true).trim();
|
||||
this.plain.value = clearHtmlLine(this.squire.getHTML(), true);
|
||||
} else {
|
||||
this.setData(rl.Utils.plainToHtml(this.plain.value, true));
|
||||
mode = 'wysiwyg';
|
||||
|
|
@ -515,7 +515,7 @@ class SquireUI
|
|||
} else try {
|
||||
if ('plain' === this.mode) {
|
||||
if (cfg.isHtml) {
|
||||
cfg.signature = rl.Utils.htmlToPlain(cfg.signature);
|
||||
cfg.signature = clearHtmlLine(cfg.signature);
|
||||
}
|
||||
this.plain.value = rl_signature_replacer(this, this.plain.value, cfg.signature, false, cfg.insertBefore);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue