aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2021-12-26 20:37:20 +0000
committerMatthew Wild <mwild1@gmail.com>2021-12-26 20:37:20 +0000
commit5a1aa107c36d48a7f9c0b94d3b7b5f94eb1889af (patch)
tree79929525114f2054d9853b43c55c36aa60f4f90f
parentf343cf5ba093f3f2f4d883b247e405f9fc29cbe7 (diff)
downloadprosody-5a1aa107c36d48a7f9c0b94d3b7b5f94eb1889af.tar.gz
prosody-5a1aa107c36d48a7f9c0b94d3b7b5f94eb1889af.zip
util.xml: Use variable instead of constant for consistency (thanks Thijs)
-rw-r--r--util/xml.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/xml.lua b/util/xml.lua
index f826b6bf..38411bfb 100644
--- a/util/xml.lua
+++ b/util/xml.lua
@@ -64,7 +64,7 @@ local parse_xml = (function()
function handler:EndElement()
stanza:up();
end
- local parser = lxp.new(handler, "\1");
+ local parser = lxp.new(handler, ns_separator);
local ok, err, line, col = parser:parse(xml);
if ok then ok, err, line, col = parser:parse(); end
--parser:close();