util.sasl.scram: Making =2D and =3D substitution actually work.

Mon, 30 Nov 2009 20:53:25 +0100

author
Tobias Markmann <tm@ayena.de>
date
Mon, 30 Nov 2009 20:53:25 +0100
changeset 2265
7fe644057dc2
parent 2264
49580a13f71e
child 2266
97f25da177af
child 2267
6e662e4f7ab2
child 2285
efea91c740a2

util.sasl.scram: Making =2D and =3D substitution actually work.

util/sasl/scram.lua file | annotate | diff | comparison | revisions
--- a/util/sasl/scram.lua	Mon Nov 30 16:39:27 2009 +0000
+++ b/util/sasl/scram.lua	Mon Nov 30 20:53:25 2009 +0100
@@ -70,8 +70,8 @@
 	end
 	
 	-- replace =2D with , and =3D with =
-	username:gsub("=2D", ",");
-	username:gsub("=3D", "=");
+	username = username:gsub("=2D", ",");
+	username = username:gsub("=3D", "=");
 	
 	-- apply SASLprep
 	username = saslprep(username);

mercurial