aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2009-11-19 00:04:14 +0100
committerTobias Markmann <tm@ayena.de>2009-11-19 00:04:14 +0100
commit6117baa28d8658b16a4de88f4183bef42bed8e0a (patch)
tree441f5c11da90ffd3435724f8b14022caa596fdd9 /util
parent74de4e38040d61d111b875a65bcb705a7047ef77 (diff)
downloadprosody-6117baa28d8658b16a4de88f4183bef42bed8e0a.tar.gz
prosody-6117baa28d8658b16a4de88f4183bef42bed8e0a.zip
Handle , and = in usernames for SCRAM.
Diffstat (limited to 'util')
-rw-r--r--util/sasl/scram.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/sasl/scram.lua b/util/sasl/scram.lua
index 7d60ef86..a7b21d0d 100644
--- a/util/sasl/scram.lua
+++ b/util/sasl/scram.lua
@@ -70,6 +70,8 @@ local function validate_username(username)
end
-- replace =2D with , and =3D with =
+ username:gsub("=2D", ",");
+ username:gsub("=3D", "=");
-- apply SASLprep
username = saslprep(username);