util.sasl: Add COMPAT comment
authorMatthew Wild <mwild1@gmail.com>
Wed, 18 Nov 2009 03:35:42 +0000 (03:35 +0000)
committerMatthew Wild <mwild1@gmail.com>
Wed, 18 Nov 2009 03:35:42 +0000 (03:35 +0000)
util/sasl.lua

index 91ce768cabe189dbefce418ed619b6395474cac4..402f05b406db33ad36044eceb22da0bb5ec3c0d2 100644 (file)
@@ -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