mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 15:07:02 +03:00
#89 Hide PGP SIGNATURE from cleartext signed messages
This commit is contained in:
parent
e43c5e6d82
commit
6b2311663b
2 changed files with 10 additions and 4 deletions
|
|
@ -193,7 +193,9 @@ export const
|
|||
}
|
||||
|
||||
if (oElement.hasAttribute('href')) {
|
||||
let sHref = getAttribute('href');
|
||||
let sHref = getAttribute('href')
|
||||
// Strip utm_* tracking
|
||||
.replace(/(\?|&)utm_[a-z]+=[^&?#]*/si, '$1');
|
||||
if (!/^([a-z]+):/i.test(sHref) && '//' !== sHref.slice(0, 2)) {
|
||||
oElement.setAttribute('data-x-broken-href', sHref);
|
||||
oElement.removeAttribute('href');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue