25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

WebAdmin: Support groupid with spaces when making shared roster result (#4245)

This commit is contained in:
Badlop 2024-07-12 12:53:38 +02:00
parent df5291e4bd
commit ef933c07cc

View File

@ -2225,8 +2225,11 @@ make_result(Binary,
when (ElementName == ResultName) or (ElementName == unknown_element_name) ->
First = proplists:get_value(first, ArgumentsUsed),
Second = proplists:get_value(second, ArgumentsUsed),
FirstUrlencoded =
hd(string:replace(
misc:url_encode(First), "%40", "@")),
{GroupId, Host} =
case jid:decode(First) of
case jid:decode(FirstUrlencoded) of
#jid{luser = <<"">>, lserver = G} ->
{G, Second};
#jid{luser = G, lserver = H} ->