diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-06-25 17:19:13 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-06-25 17:19:13 +0500 |
commit | 3a8c1a3f6c3258a13f4791cd3d57145225ebb64f (patch) | |
tree | 43161f62ac5505847b810c5d6a8cd38d5872493c | |
parent | 4730388db71203062acc5604685f8db775990cc6 (diff) | |
download | prosody-3a8c1a3f6c3258a13f4791cd3d57145225ebb64f.tar.gz prosody-3a8c1a3f6c3258a13f4791cd3d57145225ebb64f.zip |
util.stanza: Remove numeric attributes while deserializing
-rw-r--r-- | util/stanza.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/stanza.lua b/util/stanza.lua index 526bb2f0..4f387561 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -200,6 +200,8 @@ end function deserialize(stanza) -- Set metatable if stanza then + local attr = stanza.attr; + for i=1,#attr do attr[i] = nil; end setmetatable(stanza, stanza_mt); for _, child in ipairs(stanza) do if type(child) == "table" then |