mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
WebAdmin: Support groupid with spaces when making shared roster result (#4245)
This commit is contained in:
parent
df5291e4bd
commit
ef933c07cc
1 changed files with 4 additions and 1 deletions
|
@ -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} ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue