25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix srg_create when calling ejabberd_regexp (fixes issue #12)

This commit is contained in:
Badlop 2014-02-28 18:38:40 +01:00
parent e6a9c5ccee
commit d66f40d94f

View File

@ -1316,7 +1316,7 @@ private_set2(Username, Host, Xml) ->
srg_create(Group, Host, Name, Description, Display) ->
DisplayList = case Display of
[] -> [];
_ -> ejabberd_regexp:split(Display, "\\\\n")
_ -> ejabberd_regexp:split(list_to_binary(Display), <<"\\\\n">>)
end,
Opts = [{name, Name},
{displayed_groups, DisplayList},