diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-08-20 04:15:41 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-08-20 04:15:41 +0100 |
commit | 7f7d80a4e808d80f0f0f92dd965b5a4f8dfa051a (patch) | |
tree | 4eb93fa80c2fabdf5394f65c8e8d7a54c7159eae /util/sasl.lua | |
parent | c03e9b5ddc206873cecacb17b9b21274273523f0 (diff) | |
download | prosody-7f7d80a4e808d80f0f0f92dd965b5a4f8dfa051a.tar.gz prosody-7f7d80a4e808d80f0f0f92dd965b5a4f8dfa051a.zip |
util.sasl: Fix 2 global sets (one a tpyo)
Diffstat (limited to 'util/sasl.lua')
-rw-r--r-- | util/sasl.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sasl.lua b/util/sasl.lua index 7ced9f8a..295f5684 100644 --- a/util/sasl.lua +++ b/util/sasl.lua @@ -52,7 +52,7 @@ local function new_plain(realm, password_handler) local claimed_password = "" if password_encoding == nil then claimed_password = password else claimed_password = password_encoding(password) end - caimed_password = saslprep(claimed_password); + claimed_password = saslprep(claimed_password); self.username = authentication if claimed_password == correct_password then @@ -133,7 +133,7 @@ local function new_digest_md5(realm, password_handler) return t_concat(p); end local function parse(data) - message = {} + local message = {} for k, v in gmatch(data, [[([%w%-]+)="?([^",]*)"?,?]]) do -- FIXME The hacky regex makes me shudder message[k] = v; end |