mod_saslauth: Use get_text() instead of directly accessing stanza child text nodes

Wed, 05 Jan 2011 03:03:40 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 05 Jan 2011 03:03:40 +0000
changeset 3997
ed70d20fc133
parent 3996
ea0ac2fb7c9f
child 3998
13a5a8df7c34

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]", " "));

mercurial