# HG changeset patch # User Tobias Markmann # Date 1261606184 -3600 # Node ID da8d6ab0c8b41427c6ba6cb839ec595f621f0429 # Parent 39b2523bcf44a6ce7a7bec0aa9aa1125a4595109 mod_saslauth: Sanitize debugging information so it won't break terminal emulation when using GSSAPI auth. diff -r 39b2523bcf44 -r da8d6ab0c8b4 plugins/mod_saslauth.lua --- a/plugins/mod_saslauth.lua Wed Dec 23 16:46:49 2009 -0500 +++ b/plugins/mod_saslauth.lua Wed Dec 23 23:09:44 2009 +0100 @@ -121,7 +121,7 @@ local text = stanza[1]; if text then text = base64.decode(text); - log("debug", "%s", text); -- FIXME: binary output will screw up the terminal + log("debug", "%s", text:gsub("[%z\001-\009\011\012\014-\031]", " ")); if not text then session.sasl_handler = nil; session.send(build_reply("failure", "incorrect-encoding"));