Diff

util/sasl/scram.lua @ 2205:e091b308732f

Handle , and = in usernames for SCRAM.
author Tobias Markmann <tm@ayena.de>
date Thu, 19 Nov 2009 00:04:14 +0100
parent 2199:08a6b91bfe7b
child 2206:5f54100bb426
line wrap: on
line diff
--- 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);