From 7f7d80a4e808d80f0f0f92dd965b5a4f8dfa051a Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 20 Aug 2009 04:15:41 +0100 Subject: util.sasl: Fix 2 global sets (one a tpyo) --- util/sasl.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util') 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 -- cgit v1.2.3