Improved the regexp used to parse the client response a bit. Authenticating with non-ascii realm values now works.

remotes/origin/sasl
Waqas Hussain 17 years ago
parent 34b736f5cf
commit fa1df6cfe4
  1. 2
      util/sasl.lua

@ -66,7 +66,7 @@ local function new_digest_md5(realm, password_handler)
local function parse(data)
message = {}
for k, v in gmatch(data, [[([%w%-]+)="?([%w%-%/%.%+=]+)"?,?]]) do
for k, v in gmatch(data, [[([%w%-]+)="?([^",]*)"?,?]]) do
message[k] = v
end
return message

Loading…
Cancel
Save