mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
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
This commit is contained in:
parent
315e330237
commit
189d02cee0
@ -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}.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user