#89 Hide PGP SIGNATURE from cleartext signed messages

This commit is contained in:
the-djmaze 2022-02-02 18:43:55 +01:00
parent e43c5e6d82
commit 6b2311663b
2 changed files with 10 additions and 4 deletions

View file

@ -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');