From 2e82469c76d496f1e13e799f74e2911a530fb5a9 Mon Sep 17 00:00:00 2001 From: barrydegraaff Date: Tue, 6 Dec 2016 09:18:51 +0100 Subject: [PATCH] update purify.js --- README.md | 2 +- tk_barrydegraaff_zimbra_openpgp/purify.js | 8 +++++--- .../tk_barrydegraaff_zimbra_openpgp.xml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 196ed18..b5d1eb5 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ For developers: http://barrydegraaff.github.io/OpenPGPZimletJSDoc/OpenPGPZimlet. [root@myzimbra ~]# rm -Rf /opt/zimbra/zimlets-deployed/_dev/tk_barrydegraaff_zimbra_openpgp/ [root@myzimbra ~]# su zimbra - [zimbra@myzimbra ~] wget https://github.com/Zimbra-Community/pgp-zimlet/releases/download/2.6.7/tk_barrydegraaff_zimbra_openpgp.zip -O /tmp/tk_barrydegraaff_zimbra_openpgp.zip + [zimbra@myzimbra ~] wget https://github.com/Zimbra-Community/pgp-zimlet/releases/download/2.6.8/tk_barrydegraaff_zimbra_openpgp.zip -O /tmp/tk_barrydegraaff_zimbra_openpgp.zip [zimbra@myzimbra ~] zmzimletctl deploy /tmp/tk_barrydegraaff_zimbra_openpgp.zip [zimbra@myzimbra ~] zmmailboxdctl restart diff --git a/tk_barrydegraaff_zimbra_openpgp/purify.js b/tk_barrydegraaff_zimbra_openpgp/purify.js index 79a3893..bf2af37 100644 --- a/tk_barrydegraaff_zimbra_openpgp/purify.js +++ b/tk_barrydegraaff_zimbra_openpgp/purify.js @@ -21,7 +21,7 @@ * Version label, exposed for easier checks * if DOMPurify is up to date or not */ - DOMPurify.version = '0.8.3'; + DOMPurify.version = '0.8.4'; /** * Array of elements that DOMPurify removed during sanitation. @@ -465,7 +465,8 @@ /* Execute a hook if present */ _executeHook('uponSanitizeElement', currentNode, { - tagName: tagName + tagName: tagName, + allowedTags: ALLOWED_TAGS }); /* Remove element if anything forbids its presence */ @@ -537,7 +538,8 @@ hookEvent = { attrName: '', attrValue: '', - keepAttr: true + keepAttr: true, + allowedAttributes: ALLOWED_ATTR }; l = attributes.length; diff --git a/tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.xml b/tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.xml index 9dd0ae3..8832047 100644 --- a/tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.xml +++ b/tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.xml @@ -1,4 +1,4 @@ - + Zimbra OpenPGP Zimlet