aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2009-11-30 20:53:25 +0100
committerTobias Markmann <tm@ayena.de>2009-11-30 20:53:25 +0100
commit2100104326791787aafc14012c731e54ed4c35fa (patch)
treebb5ddc89a90202b0f2bea3e3efcbbbe83c0c20d1
parent70c975bfe07e639931a0f6e1e21c4783ac6fa5a1 (diff)
downloadprosody-2100104326791787aafc14012c731e54ed4c35fa.tar.gz
prosody-2100104326791787aafc14012c731e54ed4c35fa.zip
util.sasl.scram: Making =2D and =3D substitution actually work.
-rw-r--r--util/sasl/scram.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sasl/scram.lua b/util/sasl/scram.lua
index 1e9c6f7d..be82c60e 100644
--- a/util/sasl/scram.lua
+++ b/util/sasl/scram.lua
@@ -70,8 +70,8 @@ local function validate_username(username)
end
-- replace =2D with , and =3D with =
- username:gsub("=2D", ",");
- username:gsub("=3D", "=");
+ username = username:gsub("=2D", ",");
+ username = username:gsub("=3D", "=");
-- apply SASLprep
username = saslprep(username);