mod_delegation: fixed attribute filtering
authorGoffi <goffi@goffi.org>
Tue, 01 Dec 2015 12:43:04 +0100
changeset 1992 d7c1daaf2dea
parent 1959 f719d5e6c627
child 1993 2c9b227dd580
mod_delegation: fixed attribute filtering
mod_delegation/mod_delegation.lua
--- a/mod_delegation/mod_delegation.lua	Tue Nov 24 15:32:54 2015 +0100
+++ b/mod_delegation/mod_delegation.lua	Tue Dec 01 12:43:04 2015 +0100
@@ -265,7 +265,7 @@
 			end
 			if ns_data.filtering then
 				local first_child = stanza.tags[1]
-				for _, attribute in ns_data.filtering do
+				for _, attribute in pairs(ns_data.filtering) do
 					-- if any filtered attribute if not present,
 					-- we must continue the normal bahaviour
 					if not first_child.attr[attribute] then