aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_c2s.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2014-08-28 12:05:18 +0100
committerMatthew Wild <mwild1@gmail.com>2014-08-28 12:05:18 +0100
commit656d194bd1e0022605ab0a5b66da7ee2c5a3a1d3 (patch)
treef9b41c73e3cda1b1f3ffe63a3921967eea4a20d6 /plugins/mod_c2s.lua
parentbf66f0049f2e7682ed6354388db92a2b25ea67b6 (diff)
parent878efeecd5030048b33121b05c6cf402f860ca1d (diff)
downloadprosody-656d194bd1e0022605ab0a5b66da7ee2c5a3a1d3.tar.gz
prosody-656d194bd1e0022605ab0a5b66da7ee2c5a3a1d3.zip
Merge 0.10->trunk
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 f0cdd7fb..bb3858c0 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));