Software /
code /
prosody
Changeset
1415:957a81b72cb2
util.stanza: Remove numeric attributes while deserializing
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 25 Jun 2009 17:19:13 +0500 |
parents | 1414:6f653b8beac9 |
children | 1416:f916f0ff90e5 |
files | util/stanza.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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