projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d4d81a
)
util.sasl: Add COMPAT comment
author
Matthew Wild
<mwild1@gmail.com>
Wed, 18 Nov 2009 03:35:42 +0000
(
03:35
+0000)
committer
Matthew Wild
<mwild1@gmail.com>
Wed, 18 Nov 2009 03:35:42 +0000
(
03:35
+0000)
util/sasl.lua
patch
|
blob
|
history
diff --git
a/util/sasl.lua
b/util/sasl.lua
index 91ce768cabe189dbefce418ed619b6395474cac4..402f05b406db33ad36044eceb22da0bb5ec3c0d2 100644
(file)
--- 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