aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-01-15 20:08:30 +0100
committerKim Alvefur <zash@zash.se>2019-01-15 20:08:30 +0100
commitfe9e33d8c22b774d5a1f4cbc0b1145f54201c096 (patch)
tree60b1d5609e8e8956581b16c31a553088e90a967f /plugins/mod_s2s
parent4a1dec0392e8a0a076c91ce6ff47f938ee9b2641 (diff)
downloadprosody-fe9e33d8c22b774d5a1f4cbc0b1145f54201c096.tar.gz
prosody-fe9e33d8c22b774d5a1f4cbc0b1145f54201c096.zip
mod_c2s, mod_s2s, mod_component: Log invalid XML escaped (fixes #734)
See 6ed0d6224d64
Diffstat (limited to 'plugins/mod_s2s')
-rw-r--r--plugins/mod_s2s/mod_s2s.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua
index aae37b7f..79308847 100644
--- a/plugins/mod_s2s/mod_s2s.lua
+++ b/plugins/mod_s2s/mod_s2s.lua
@@ -595,8 +595,7 @@ local function initialize_session(session)
if data then
local ok, err = stream:feed(data);
if ok then return; end
- log("warn", "Received invalid XML: %s", data);
- log("warn", "Problem was: %s", err);
+ log("debug", "Received invalid XML (%s) %d bytes: %q", tostring(err), #data, data:sub(1, 300));
session:close("not-well-formed");
end
end