From: Christophe Romain Date: Thu, 27 Aug 2009 22:23:39 +0000 (+0000) Subject: reapply previous RSM filtering fix drop by mistake X-Git-Tag: v2.1.0~18^2~77 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff1fc2b4f02a09aca43b9a54a1bdf432d775aa71;p=ejabberd reapply previous RSM filtering fix drop by mistake SVN Revision: 2555 --- diff --git a/src/mod_pubsub/mod_pubsub_odbc.erl b/src/mod_pubsub/mod_pubsub_odbc.erl index 86cc1d007..5bf196dfe 100644 --- a/src/mod_pubsub/mod_pubsub_odbc.erl +++ b/src/mod_pubsub/mod_pubsub_odbc.erl @@ -1093,10 +1093,9 @@ iq_pubsub(Host, ServerHost, From, IQType, SubEl, Lang, Access, Plugins) -> iq_pubsub_owner(Host, ServerHost, From, IQType, SubEl, Lang) -> {xmlelement, _, _, SubEls} = SubEl, - NoRSM = lists:filter(fun({xmlelement, Name, _, _}) -> - Name == "set" - end, SubEls), - Action = xml:remove_cdata(SubEls) -- NoRSM, + Action = lists:filter(fun({xmlelement, "set", _, _}) -> false; + (_) -> true + end, xml:remove_cdata(SubEls)), case Action of [{xmlelement, Name, Attrs, Els}] -> Node = case Host of