Changeset

2205:e091b308732f

Handle , and = in usernames for SCRAM.
author Tobias Markmann <tm@ayena.de>
date Thu, 19 Nov 2009 00:04:14 +0100
parents 2204:de3edab7551d
children 2206:5f54100bb426
files util/sasl/scram.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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);