Comparison

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
comparison
equal deleted inserted replaced
2204:de3edab7551d 2205:e091b308732f
68 return false 68 return false
69 end 69 end
70 end 70 end
71 71
72 -- replace =2D with , and =3D with = 72 -- replace =2D with , and =3D with =
73 username:gsub("=2D", ",");
74 username:gsub("=3D", "=");
73 75
74 -- apply SASLprep 76 -- apply SASLprep
75 username = saslprep(username); 77 username = saslprep(username);
76 return username; 78 return username;
77 end 79 end