From 977f043a6aa15623560fa8f37e3d6e5c69bfa872 Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 28 Feb 2014 18:38:40 +0100 Subject: [PATCH] Fix srg_create when calling ejabberd_regexp (fixes issue #12) --- mod_admin_extra/src/mod_admin_extra.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_admin_extra/src/mod_admin_extra.erl b/mod_admin_extra/src/mod_admin_extra.erl index 2a7d592..73053de 100644 --- a/mod_admin_extra/src/mod_admin_extra.erl +++ b/mod_admin_extra/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},