diff --git a/src/ejabberd_xmlrpc.erl b/src/ejabberd_xmlrpc.erl index 4e979c68d..3f4d2afc5 100644 --- a/src/ejabberd_xmlrpc.erl +++ b/src/ejabberd_xmlrpc.erl @@ -408,6 +408,8 @@ format_result(Int, {Name, integer}) -> {struct, [{Name, Int}]}; format_result(String, {Name, string}) -> {struct, [{Name, lists:flatten(String)}]}; +format_result(Binary, {Name, binary}) -> + {struct, [{Name, binary_to_list(Binary)}]}; format_result(Code, {Name, rescode}) -> {struct, [{Name, make_status(Code)}]}; format_result({Code, Text}, {Name, restuple}) ->