# HG changeset patch # User Tobias Markmann # Date 1250712254 -7200 # Node ID 132c41aa0680675e261271257918dc61b878371e # Parent 1dcfb2c6430214ab552bafbe7593bc6294d727e8 Change variable name. The previous choice was too ugly looking. diff -r 1dcfb2c64302 -r 132c41aa0680 util/sasl.lua --- a/util/sasl.lua Wed Aug 19 21:59:16 2009 +0200 +++ b/util/sasl.lua Wed Aug 19 22:04:14 2009 +0200 @@ -20,7 +20,7 @@ local t_insert, t_concat = table.insert, table.concat; local to_byte, to_char = string.byte, string.char; local to_unicode = require "util.encodings".idna.to_unicode; -local u_e_saslprep = require "utii.encodings".stringprep.saslprep; +local saslprep = require "utii.encodings".stringprep.saslprep; local s_match = string.match; local gmatch = string.gmatch local string = string @@ -40,7 +40,7 @@ local authorization = s_match(response, "([^&%z]+)") local authentication = s_match(response, "%z([^&%z]+)%z") local password = s_match(response, "%z[^&%z]+%z([^&%z]+)") - authorization, authentication, password = u_e_saslprep(authorization), u_e_saslprep(authentication), u_e_saslprep(password); + authorization, authentication, password = saslprep(authorization), saslprep(authentication), saslprep(password); if authentication == nil or password == nil then return "failure", "malformed-request" end @@ -52,7 +52,7 @@ local claimed_password = "" if password_encoding == nil then claimed_password = password else claimed_password = password_encoding(password) end - caimed_password = u_e_saslprep(claimed_password); + caimed_password = saslprep(claimed_password); self.username = authentication if claimed_password == correct_password then