mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-30 16:36:29 +01:00
Fid mod_roster_odbc binary arguments
This commit is contained in:
parent
fe4944e031
commit
19ad0eb238
@ -760,10 +760,11 @@ in_auto_reply(_, _, _) -> none.
|
|||||||
remove_user(User, Server) when is_binary(User), is_binary(Server) ->
|
remove_user(User, Server) when is_binary(User), is_binary(Server) ->
|
||||||
try
|
try
|
||||||
LUser = exmpp_stringprep:nodeprep(User),
|
LUser = exmpp_stringprep:nodeprep(User),
|
||||||
LServer = binary_to_list(exmpp_stringprep:nameprep(Server)),
|
LServer = exmpp_stringprep:nameprep(Server),
|
||||||
|
LServerStr = binary_to_list(LServer),
|
||||||
Username = ejabberd_odbc:escape(LUser),
|
Username = ejabberd_odbc:escape(LUser),
|
||||||
send_unsubscription_to_rosteritems(LUser, LServer),
|
send_unsubscription_to_rosteritems(LUser, LServer),
|
||||||
odbc_queries:del_user_roster_t(LServer, Username),
|
odbc_queries:del_user_roster_t(LServerStr, Username),
|
||||||
ok
|
ok
|
||||||
catch
|
catch
|
||||||
_ ->
|
_ ->
|
||||||
@ -1213,8 +1214,8 @@ user_roster_item_parse_query(User, Server, Items, Query) ->
|
|||||||
case lists:keysearch(
|
case lists:keysearch(
|
||||||
"validate" ++ ejabberd_web_admin:term_to_id(JID), 1, Query) of
|
"validate" ++ ejabberd_web_admin:term_to_id(JID), 1, Query) of
|
||||||
{value, _} ->
|
{value, _} ->
|
||||||
{U, S, R} = JID,
|
{U, S, Resource} = JID,
|
||||||
JID1 = exmpp_jid:make(U, S, R),
|
JID1 = exmpp_jid:make(U, S, Resource),
|
||||||
out_subscription(
|
out_subscription(
|
||||||
User, Server, JID1, subscribed),
|
User, Server, JID1, subscribed),
|
||||||
UJID = exmpp_jid:make(User, Server),
|
UJID = exmpp_jid:make(User, Server),
|
||||||
|
Loading…
Reference in New Issue
Block a user