aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-11-18 06:21:59 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-11-18 06:21:59 +0500
commitae703e45bfafd588fe99250d220f46748e3f1122 (patch)
tree533e4004a2f92be44ccd29edbf4d15562c0ea0b4 /util
parent38fe146c0509a615a8f201c9fa5814178cb8b918 (diff)
downloadprosody-ae703e45bfafd588fe99250d220f46748e3f1122.tar.gz
prosody-ae703e45bfafd588fe99250d220f46748e3f1122.zip
util.sasl: Added compatibility workaround for jwchat sending an encoded trailing '\0' in SASL responses.
Diffstat (limited to 'util')
-rw-r--r--util/sasl.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl.lua b/util/sasl.lua
index b6fc6d66..91ce768c 100644
--- a/util/sasl.lua
+++ b/util/sasl.lua
@@ -129,7 +129,7 @@ local function new_digest_md5(realm, credentials_handler)
end
local function parse(data)
local message = {}
- for k, v in gmatch(data, [[([%w%-]+)="?([^",]*)"?,?]]) do -- FIXME The hacky regex makes me shudder
+ for k, v in gmatch(data, [[([%w%-]+)="?([^",%z]*)"?,?]]) do -- FIXME The hacky regex makes me shudder
message[k] = v;
end
return message;