projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
usermanager: Return sane errors/results when Cyrus SASL is in use.
[prosody.git]
/
core
/
xmlhandlers.lua
diff --git
a/core/xmlhandlers.lua
b/core/xmlhandlers.lua
index 5d56584581d970759c666d9a065a1821e8fa8cfa..b7992f77a817cdf8e7bc279ec4f92a3a3c2768cb 100644
(file)
--- a/
core/xmlhandlers.lua
+++ b/
core/xmlhandlers.lua
@@
-1,6
+1,6
@@
-- Prosody IM
-- Prosody IM
--- Copyright (C) 2008-20
09
Matthew Wild
--- Copyright (C) 2008-20
09
Waqas Hussain
+-- Copyright (C) 2008-20
10
Matthew Wild
+-- Copyright (C) 2008-20
10
Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
@@
-12,8
+12,6
@@
require "util.stanza"
local st = stanza;
local tostring = tostring;
local st = stanza;
local tostring = tostring;
-local pairs = pairs;
-local ipairs = ipairs;
local t_insert = table.insert;
local t_concat = table.concat;
local t_insert = table.insert;
local t_concat = table.concat;
@@
-33,8
+31,6
@@
local ns_separator = "\1";
local ns_pattern = "^([^"..ns_separator.."]*)"..ns_separator.."?(.*)$";
function init_xmlhandlers(session, stream_callbacks)
local ns_pattern = "^([^"..ns_separator.."]*)"..ns_separator.."?(.*)$";
function init_xmlhandlers(session, stream_callbacks)
- local ns_stack = { "" };
- local curr_tag;
local chardata = {};
local xml_handlers = {};
local log = session.log or default_log;
local chardata = {};
local xml_handlers = {};
local log = session.log or default_log;
@@
-97,7
+93,6
@@
function init_xmlhandlers(session, stream_callbacks)
end
stanza = st.stanza(name, attr);
end
stanza = st.stanza(name, attr);
- curr_tag = stanza;
else -- we are inside a stanza, so add a tag
attr.xmlns = nil;
if curr_ns ~= stream_default_ns then
else -- we are inside a stanza, so add a tag
attr.xmlns = nil;
if curr_ns ~= stream_default_ns then