util.sasl: Fix 2 global sets (one a tpyo)
authorMatthew Wild <mwild1@gmail.com>
Thu, 20 Aug 2009 03:15:41 +0000 (04:15 +0100)
committerMatthew Wild <mwild1@gmail.com>
Thu, 20 Aug 2009 03:15:41 +0000 (04:15 +0100)
util/sasl.lua

index 7ced9f8ae0318d27bff729b96fab519f046eef41..295f568445fc1adc39d52b41086ddcc625f468f1 100644 (file)
@@ -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