diff options
author | Konstantinos Kallas <konstantinos.kallas@hotmail.com> | 2017-11-02 19:05:12 +0200 |
---|---|---|
committer | Konstantinos Kallas <konstantinos.kallas@hotmail.com> | 2017-11-02 19:05:12 +0200 |
commit | 189d02cee07fa073989d934ff8bed0b4476e3c43 (patch) | |
tree | 6e5b2e7649ccf9041cda77cac288574641931a2c /src | |
parent | Fix version of jose library (diff) |
Bug Fix
The dictionary returned after the directory call contains a meta key
whose value is a JSON dictionary. This is now taken care so that only
bitstring values are kept as resource URIs
Diffstat (limited to 'src')
-rw-r--r-- | src/ejabberd_acme_comm.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ejabberd_acme_comm.erl b/src/ejabberd_acme_comm.erl index 99eaff87b..acd552f7e 100644 --- a/src/ejabberd_acme_comm.erl +++ b/src/ejabberd_acme_comm.erl @@ -151,7 +151,7 @@ revoke_cert(Dirs, PrivateKey, Req, Nonce) -> get_dirs({ok, Head, Return}) -> NewNonce = get_nonce(Head), StrDirectories = [{bitstring_to_list(X), bitstring_to_list(Y)} || - {X, Y} <- Return], + {X, Y} <- Return, is_bitstring(X) andalso is_bitstring(Y)], NewDirs = maps:from_list(StrDirectories), {ok, NewDirs, NewNonce}. |