From 09dd288ac032c413a69dc7538b843c19a34373d7 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Wed, 25 Feb 2015 00:46:34 +0100 Subject: [PATCH] mod_admin_extra: Fix private_get/private_set types --- src/mod_admin_extra.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl index e83dddd9f..a0006dd9e 100644 --- a/src/mod_admin_extra.erl +++ b/src/mod_admin_extra.erl @@ -460,12 +460,12 @@ commands() -> #ejabberd_commands{name = private_get, tags = [private], desc = "Get some information from a user private storage", module = ?MODULE, function = private_get, - args = [{user, string}, {host, string}, {element, string}, {ns, string}], + args = [{user, binary}, {host, binary}, {element, binary}, {ns, binary}], result = {res, string}}, #ejabberd_commands{name = private_set, tags = [private], desc = "Set to the user private storage", module = ?MODULE, function = private_set, - args = [{user, string}, {host, string}, {element, string}], + args = [{user, binary}, {host, binary}, {element, binary}], result = {res, rescode}}, #ejabberd_commands{name = srg_create, tags = [shared_roster_group], @@ -1289,7 +1289,7 @@ private_get(Username, Host, Element, Ns) -> [{xmlel, <<"query">>, [{<<"xmlns">>, <<"jabber:iq:private">>}], [SubEl]}] = ResIq#iq.sub_el, - xml:element_to_string(SubEl). + binary_to_list(xml:element_to_binary(SubEl)). private_set(Username, Host, ElementString) -> case xml_stream:parse_element(ElementString) of