Fixed decoding of parameters.

Sun, 05 Jul 2009 18:59:46 +0200

author
Tobias Markmann <tm@ayena.de>
date
Sun, 05 Jul 2009 18:59:46 +0200
changeset 1484
80e4f1d731c2
parent 1449
6a90316a81c3
child 1485
fbefd16d2955

Fixed decoding of parameters.

plugins/mod_saslauth.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_saslauth.lua	Wed Jul 01 15:14:44 2009 +0200
+++ b/plugins/mod_saslauth.lua	Sun Jul 05 18:59:46 2009 +0200
@@ -72,7 +72,7 @@
 		if mechanism == "PLAIN" then
 			return func, password;
 		elseif mechanism == "DIGEST-MD5" then
-			if decoder then node, hostname, password = decoder(node), decoder(hostname), decoder(password); end
+			if decoder then node, realm, password = decoder(node), decoder(realm), decoder(password); end
 			return func, md5(node..":"..realm..":"..password);
 		end
 	end

mercurial