diff options
-rw-r--r-- | src/mod_shared_roster_ldap.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mod_shared_roster_ldap.erl b/src/mod_shared_roster_ldap.erl index 745430ca..04db34ef 100644 --- a/src/mod_shared_roster_ldap.erl +++ b/src/mod_shared_roster_ldap.erl @@ -575,7 +575,11 @@ mod_opt_type(ldap_memberattr_format) -> fun iolist_to_binary/1; mod_opt_type(ldap_memberattr_format_re) -> fun (S) -> - Re = iolist_to_binary(S), {ok, MP} = re:compile(Re), MP + Re = iolist_to_binary(S), + case Re of + <<>> -> <<>>; + _ -> {ok, MP} = re:compile(Re), MP + end end; mod_opt_type(ldap_rfilter) -> opt_type(ldap_rfilter); |