Comparison

plugins/mod_saslauth.lua @ 2398:44f694ce6aec

mod_saslauth: Adjust sanitizing.
author Tobias Markmann <tm@ayena.de>
date Wed, 23 Dec 2009 23:13:39 +0100
parent 2397:da8d6ab0c8b4
child 2414:1596e0c0019b
comparison
equal deleted inserted replaced
2397:da8d6ab0c8b4 2398:44f694ce6aec
119 return; -- FIXME ignoring out of order stanzas because ejabberd does 119 return; -- FIXME ignoring out of order stanzas because ejabberd does
120 end 120 end
121 local text = stanza[1]; 121 local text = stanza[1];
122 if text then 122 if text then
123 text = base64.decode(text); 123 text = base64.decode(text);
124 log("debug", "%s", text:gsub("[%z\001-\009\011\012\014-\031]", " ")); 124 log("debug", "%s", text:gsub("[%z\001-\008\011\012\014-\031]", " "));
125 if not text then 125 if not text then
126 session.sasl_handler = nil; 126 session.sasl_handler = nil;
127 session.send(build_reply("failure", "incorrect-encoding")); 127 session.send(build_reply("failure", "incorrect-encoding"));
128 return; 128 return;
129 end 129 end