# HG changeset patch # User Matthew Wild # Date 1294196620 0 # Node ID ed70d20fc133fb9e98b566768b5ac016b8ac9fbf # Parent ea0ac2fb7c9f10decc015d2db148484a32c6efa0 mod_saslauth: Use get_text() instead of directly accessing stanza child text nodes diff -r ea0ac2fb7c9f -r ed70d20fc133 plugins/mod_saslauth.lua --- 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]", " "));