aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-25 10:04:22 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-25 10:04:22 +0500
commit4730388db71203062acc5604685f8db775990cc6 (patch)
tree98787770cfe6047e7c9f9354d9d7a63af5a67455
parentbc6907dfa892f645eeb4755035d326983af3295d (diff)
downloadprosody-4730388db71203062acc5604685f8db775990cc6.tar.gz
prosody-4730388db71203062acc5604685f8db775990cc6.zip
xmlhandlers: Remove numeric attributes
-rw-r--r--core/xmlhandlers.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/xmlhandlers.lua b/core/xmlhandlers.lua
index 573a9604..a71fc40f 100644
--- a/core/xmlhandlers.lua
+++ b/core/xmlhandlers.lua
@@ -60,13 +60,14 @@ function init_xmlhandlers(session, stream_callbacks)
end
-- FIXME !!!!!
- for i, k in ipairs(attr) do
+ for i=1,#attr do
+ local k = attr[i];
+ attr[i] = nil;
local ns, nm = k:match("^([^|]+)|?([^|]-)$")
if ns and nm then
ns = ns_prefixes[ns];
if ns then
attr[ns..":"..nm] = attr[k];
- attr[i] = ns..":"..nm;
attr[k] = nil;
end
end