Wed, 05 Jan 2011 03:03:40 +0000
mod_saslauth: Use get_text() instead of directly accessing stanza child text nodes
plugins/mod_saslauth.lua | file | annotate | diff | comparison | revisions |
--- a/plugins/mod_saslauth.lua Wed Jan 05 03:03:01 2011 +0000 +++ b/plugins/mod_saslauth.lua Wed Jan 05 03:03:40 2011 +0000 @@ -66,7 +66,7 @@ end local function sasl_process_cdata(session, stanza) - local text = stanza[1]; + local text = stanza:get_text(); if text then text = base64.decode(text); --log("debug", "AUTH: %s", text:gsub("[%z\001-\008\011\012\014-\031]", " "));