Diff

plugins/mod_c2s.lua @ 6367:769a3577dd85

Merge 0.9->0.10
author Matthew Wild <mwild1@gmail.com>
date Thu, 28 Aug 2014 09:23:24 +0100
parent 6284:b49540983320
parent 6364:4e93e8768c36
child 6382:57d23c26039b
line wrap: on
line diff
--- a/plugins/mod_c2s.lua	Wed Aug 27 13:00:04 2014 +0200
+++ b/plugins/mod_c2s.lua	Thu Aug 28 09:23:24 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));