aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_c2s.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2014-08-23 09:29:17 +0100
committerMatthew Wild <mwild1@gmail.com>2014-08-23 09:29:17 +0100
commitd2e9a31bf546b782d249cd9346b8ae6c41b1c966 (patch)
tree205daf09b6f4e989fa855d46ed220c2b641c7ae2 /plugins/mod_c2s.lua
parent2b449510c7ebdf21b761072b0892d872c62646a1 (diff)
downloadprosody-d2e9a31bf546b782d249cd9346b8ae6c41b1c966.tar.gz
prosody-d2e9a31bf546b782d249cd9346b8ae6c41b1c966.zip
mod_c2s, mod_s2s: Log received invalid stream headers
Diffstat (limited to 'plugins/mod_c2s.lua')
-rw-r--r--plugins/mod_c2s.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua
index 5feb1f2c..b6895f4b 100644
--- a/plugins/mod_c2s.lua
+++ b/plugins/mod_c2s.lua
@@ -91,7 +91,7 @@ end
function stream_callbacks.error(session, error, data)
if error == "no-stream" then
- session.log("debug", "Invalid opening stream header");
+ session.log("debug", "Invalid opening stream header (%s)", (data:gsub("^([^\1]+)\1", "{%1}")));
session:close("invalid-namespace");
elseif error == "parse-error" then
(session.log or log)("debug", "Client XML parse error: %s", tostring(data));