mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Fix processing of ldap_memberattr_format_re option
This makes sure that "" value is handled as before options processing overhaul. This fixed ldap shared roster testcase
This commit is contained in:
parent
dc601610b6
commit
d2974cf48a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user