aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantinos Kallas <konstantinos.kallas@hotmail.com>2017-11-02 19:05:12 +0200
committerKonstantinos Kallas <konstantinos.kallas@hotmail.com>2017-11-02 19:05:12 +0200
commit189d02cee07fa073989d934ff8bed0b4476e3c43 (patch)
tree6e5b2e7649ccf9041cda77cac288574641931a2c /src
parentFix 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.erl2
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}.