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

Commit

Permalink
update purify.js
Browse files Browse the repository at this point in the history
  • Loading branch information
barrydegraaff committed Dec 6, 2016
1 parent 1218c17 commit 2e82469
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions tk_barrydegraaff_zimbra_openpgp/purify.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 */
Expand Down Expand Up @@ -537,7 +538,8 @@
hookEvent = {
attrName: '',
attrValue: '',
keepAttr: true
keepAttr: true,
allowedAttributes: ALLOWED_ATTR
};
l = attributes.length;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<zimlet name="tk_barrydegraaff_zimbra_openpgp" version="2.6.7" label="OpenPGP" description="Encrypt/Decrypt messages with OpenPGP">
<zimlet name="tk_barrydegraaff_zimbra_openpgp" version="2.6.8" label="OpenPGP" description="Encrypt/Decrypt messages with OpenPGP">
<summary>
Zimbra OpenPGP Zimlet

Expand Down

0 comments on commit 2e82469

Please sign in to comment.