mod_saslauth: Adjust sanitizing.
authorTobias Markmann <tm@ayena.de>
Wed, 23 Dec 2009 23:13:39 +0100
changeset 2398 44f694ce6aec
parent 2397 da8d6ab0c8b4
child 2399 0325f241a26c
mod_saslauth: Adjust sanitizing.
plugins/mod_saslauth.lua
--- a/plugins/mod_saslauth.lua	Wed Dec 23 23:09:44 2009 +0100
+++ b/plugins/mod_saslauth.lua	Wed Dec 23 23:13:39 2009 +0100
@@ -121,7 +121,7 @@
 	local text = stanza[1];
 	if text then
 		text = base64.decode(text);
-		log("debug", "%s", text:gsub("[%z\001-\009\011\012\014-\031]", " "));
+		log("debug", "%s", text:gsub("[%z\001-\008\011\012\014-\031]", " "));
 		if not text then
 			session.sasl_handler = nil;
 			session.send(build_reply("failure", "incorrect-encoding"));