]> granicus.if.org Git - ejabberd/commitdiff
Parse ldap_uids in mod_vcard_ldap like in eldap_utils (#319)
authorBadlop <badlop@process-one.net>
Wed, 3 May 2017 21:32:56 +0000 (23:32 +0200)
committerBadlop <badlop@process-one.net>
Wed, 3 May 2017 21:32:56 +0000 (23:32 +0200)
src/mod_vcard_ldap.erl

index d5ec2a8f1f07de794f4c2637912cb2a9d07c48eb..28dda7af6c42bde3535c4580a6447d43b11ec37c 100644 (file)
@@ -429,9 +429,10 @@ mod_opt_type(ldap_uids) ->
     fun (Us) ->
            lists:map(fun ({U, P}) ->
                              {iolist_to_binary(U), iolist_to_binary(P)};
-                         ({U}) -> {iolist_to_binary(U)}
+                         ({U}) -> {iolist_to_binary(U)};
+                         (U) -> {iolist_to_binary(U)}
                      end,
-                     Us)
+                     lists:flatten(Us))
     end;
 mod_opt_type(ldap_vcard_map) ->
     fun (Ls) ->