diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl index 2a7d5929b..73053decc 100644 --- a/src/mod_admin_extra.erl +++ b/src/mod_admin_extra.erl @@ -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},