Software /
code /
prosody
Diff
plugins/mod_c2s.lua @ 6368:bd0c8b361589
Merge 0.10->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 28 Aug 2014 12:05:18 +0100 |
parent | 6367:769a3577dd85 |
child | 6382:57d23c26039b |
line wrap: on
line diff
--- a/plugins/mod_c2s.lua Wed Aug 13 19:22:08 2014 +0200 +++ b/plugins/mod_c2s.lua Thu Aug 28 12:05:18 2014 +0100 @@ -91,7 +91,7 @@ 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));