# HG changeset patch # User Tobias Markmann # Date 1258585454 -3600 # Node ID e091b308732fa0932585edc2860b6ff5c388846b # Parent de3edab7551d7d518f3fca780471b5b8e6be84bd Handle , and = in usernames for SCRAM. diff -r de3edab7551d -r e091b308732f 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);