Comparison

util/sasl/scram.lua @ 2265:7fe644057dc2

util.sasl.scram: Making =2D and =3D substitution actually work.
author Tobias Markmann <tm@ayena.de>
date Mon, 30 Nov 2009 20:53:25 +0100
parent 2255:92e329e1cd99
child 2266:6e662e4f7ab2
comparison
equal deleted inserted replaced
2264:49580a13f71e 2265:7fe644057dc2
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", ","); 73 username = username:gsub("=2D", ",");
74 username:gsub("=3D", "="); 74 username = username:gsub("=3D", "=");
75 75
76 -- apply SASLprep 76 -- apply SASLprep
77 username = saslprep(username); 77 username = saslprep(username);
78 return username; 78 return username;
79 end 79 end