--- a/plugins/mod_component.lua Mon Jan 14 00:17:02 2019 +0100
+++ b/plugins/mod_component.lua Tue Jan 15 20:08:30 2019 +0100
@@ -310,7 +310,7 @@
function session.data(_, data)
local ok, err = stream:feed(data);
if ok then return; end
- module:log("debug", "Received invalid XML (%s) %d bytes: %s", tostring(err), #data, data:sub(1, 300):gsub("[\r\n]+", " "):gsub("[%z\1-\31]", "_"));
+ log("debug", "Received invalid XML (%s) %d bytes: %q", tostring(err), #data, data:sub(1, 300));
session:close("not-well-formed");
end