mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Bug requesting non-existent data with private_get command (#1690)
This commit is contained in:
parent
9b8364b6c8
commit
d18d99e8ec
@ -1363,7 +1363,7 @@ get_last(User, Server) ->
|
||||
%% <aa xmlns='bb'>Cluth</aa>
|
||||
|
||||
private_get(Username, Host, Element, Ns) ->
|
||||
ElementXml = [{Ns, #xmlel{name = Element, attrs = [{<<"xmlns">>, Ns}]}}],
|
||||
ElementXml = #xmlel{name = Element, attrs = [{<<"xmlns">>, Ns}]},
|
||||
Els = mod_private:get_data(jid:nodeprep(Username), jid:nameprep(Host),
|
||||
[{Ns, ElementXml}]),
|
||||
binary_to_list(fxml:element_to_binary(xmpp:encode(#private{xml_els = Els}))).
|
||||
|
Loading…
Reference in New Issue
Block a user