Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 2e82469

Browse files
author
barrydegraaff
committed
update purify.js
1 parent 1218c17 commit 2e82469

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ For developers: http://barrydegraaff.github.io/OpenPGPZimletJSDoc/OpenPGPZimlet.
3434

3535
[root@myzimbra ~]# rm -Rf /opt/zimbra/zimlets-deployed/_dev/tk_barrydegraaff_zimbra_openpgp/
3636
[root@myzimbra ~]# su zimbra
37-
[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
37+
[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
3838
[zimbra@myzimbra ~] zmzimletctl deploy /tmp/tk_barrydegraaff_zimbra_openpgp.zip
3939
[zimbra@myzimbra ~] zmmailboxdctl restart
4040

tk_barrydegraaff_zimbra_openpgp/purify.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* Version label, exposed for easier checks
2222
* if DOMPurify is up to date or not
2323
*/
24-
DOMPurify.version = '0.8.3';
24+
DOMPurify.version = '0.8.4';
2525

2626
/**
2727
* Array of elements that DOMPurify removed during sanitation.
@@ -465,7 +465,8 @@
465465

466466
/* Execute a hook if present */
467467
_executeHook('uponSanitizeElement', currentNode, {
468-
tagName: tagName
468+
tagName: tagName,
469+
allowedTags: ALLOWED_TAGS
469470
});
470471

471472
/* Remove element if anything forbids its presence */
@@ -537,7 +538,8 @@
537538
hookEvent = {
538539
attrName: '',
539540
attrValue: '',
540-
keepAttr: true
541+
keepAttr: true,
542+
allowedAttributes: ALLOWED_ATTR
541543
};
542544
l = attributes.length;
543545

tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<zimlet name="tk_barrydegraaff_zimbra_openpgp" version="2.6.7" label="OpenPGP" description="Encrypt/Decrypt messages with OpenPGP">
1+
<zimlet name="tk_barrydegraaff_zimbra_openpgp" version="2.6.8" label="OpenPGP" description="Encrypt/Decrypt messages with OpenPGP">
22
<summary>
33
Zimbra OpenPGP Zimlet
44

0 commit comments

Comments
 (0)