Handle , and = in usernames for SCRAM.
authorTobias Markmann <tm@ayena.de>
Thu, 19 Nov 2009 00:04:14 +0100
changeset 2205 e091b308732f
parent 2204 de3edab7551d
child 2206 5f54100bb426
Handle , and = in usernames for SCRAM.
util/sasl/scram.lua
--- a/util/sasl/scram.lua	Wed Nov 18 23:26:35 2009 +0100
+++ b/util/sasl/scram.lua	Thu Nov 19 00:04:14 2009 +0100
@@ -70,6 +70,8 @@
 	end
 	
 	-- replace =2D with , and =3D with =
+	username:gsub("=2D", ",");
+	username:gsub("=3D", "=");
 	
 	-- apply SASLprep
 	username = saslprep(username);