Software /
code /
prosody
Diff
util/stanza.lua @ 1415:957a81b72cb2
util.stanza: Remove numeric attributes while deserializing
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 25 Jun 2009 17:19:13 +0500 |
parent | 1151:8096941b6734 |
child | 1416:f916f0ff90e5 |
line wrap: on
line diff
--- a/util/stanza.lua Thu Jun 25 10:04:22 2009 +0500 +++ b/util/stanza.lua Thu Jun 25 17:19:13 2009 +0500 @@ -200,6 +200,8 @@ 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