]> granicus.if.org Git - ejabberd/commitdiff
fix issue with RSM filtering
authorChristophe Romain <christophe.romain@process-one.net>
Thu, 27 Aug 2009 09:32:40 +0000 (09:32 +0000)
committerChristophe Romain <christophe.romain@process-one.net>
Thu, 27 Aug 2009 09:32:40 +0000 (09:32 +0000)
SVN Revision: 2548

src/mod_pubsub/mod_pubsub_odbc.erl

index aa6b1ece3024ceb016c2dbb806032a03baf2831f..31ff479c62845b54071e89c5bca84b506a72ab2e 100644 (file)
@@ -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