aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-11-18 03:35:42 +0000
committerMatthew Wild <mwild1@gmail.com>2009-11-18 03:35:42 +0000
commit4cac67d580f99530cd401f4b9b7e7f2036697ada (patch)
tree4509b824df19eb4a0a8dda9541a7427cea1f5039 /util/sasl.lua
parent57af671e2b8242091cca9cadf73c89a028e421ec (diff)
downloadprosody-4cac67d580f99530cd401f4b9b7e7f2036697ada.tar.gz
prosody-4cac67d580f99530cd401f4b9b7e7f2036697ada.zip
util.sasl: Add COMPAT comment
Diffstat (limited to 'util/sasl.lua')
-rw-r--r--util/sasl.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/sasl.lua b/util/sasl.lua
index 91ce768c..402f05b4 100644
--- a/util/sasl.lua
+++ b/util/sasl.lua
@@ -129,6 +129,7 @@ local function new_digest_md5(realm, credentials_handler)
end
local function parse(data)
local message = {}
+ -- COMPAT: %z in the pattern to work around jwchat bug (sends "charset=utf-8\0")
for k, v in gmatch(data, [[([%w%-]+)="?([^",%z]*)"?,?]]) do -- FIXME The hacky regex makes me shudder
message[k] = v;
end