Software /
code /
prosody
Diff
net/xmppclient_listener.lua @ 2170:2abca9cc78b1
Merge with 0.6
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 25 Nov 2009 15:41:04 +0000 |
parent | 2163:8d33f94dc3a1 |
parent | 2167:e41a6ea7fc0f |
child | 2454:e4818c49192d |
line wrap: on
line diff
--- a/net/xmppclient_listener.lua Wed Nov 25 03:30:41 2009 +0000 +++ b/net/xmppclient_listener.lua Wed Nov 25 15:41:04 2009 +0000 @@ -61,7 +61,7 @@ function session.data(conn, data) local ok, err = parser:parse(data); if ok then return; end - log("debug", "Received invalid XML (%s) %d bytes: %s", tostring(err), #data, data:sub(1, 300):gsub("[\r\n]+", " ")); + log("debug", "Received invalid XML (%s) %d bytes: %s", tostring(err), #data, data:sub(1, 300):gsub("[\r\n]+", " "):gsub("[%z\1-\31]", "_")); session:close("xml-not-well-formed"); end