aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl
diff options
context:
space:
mode:
Diffstat (limited to 'util/sasl')
-rw-r--r--util/sasl/scram.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/sasl/scram.lua b/util/sasl/scram.lua
index 9362cca7..c3bc9600 100644
--- a/util/sasl/scram.lua
+++ b/util/sasl/scram.lua
@@ -60,7 +60,8 @@ end
local function validate_username(username)
-- check for forbidden char sequences
-
+ for eq in s:gmatch("=(.?.?)") do
+ if eq ~= "2D" and eq ~= "3D" then return false end end return true;
-- replace =2D with , and =3D with =
-- apply SASLprep