]> granicus.if.org Git - ejabberd/commitdiff
Bug requesting non-existent data with private_get command (#1690)
authorBadlop <badlop@process-one.net>
Wed, 26 Apr 2017 21:14:30 +0000 (23:14 +0200)
committerBadlop <badlop@process-one.net>
Wed, 26 Apr 2017 21:14:30 +0000 (23:14 +0200)
src/mod_admin_extra.erl

index 141f5f5db568d1e58234e15f96efb3173e5efde7..133b2fd29085be14a492092e4bd6ffe49e724363 100644 (file)
@@ -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}))).