aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2008-11-30 00:44:23 +0100
committerTobias Markmann <tm@ayena.de>2008-11-30 00:44:23 +0100
commit9535a107ffbfb3c296304230e821ad74d7db1579 (patch)
treebda7f52487bafc4e35c56b63874110e64ecd164d
parent4bed2a5772a88b0286608d80e154e29487927523 (diff)
downloadprosody-9535a107ffbfb3c296304230e821ad74d7db1579.tar.gz
prosody-9535a107ffbfb3c296304230e821ad74d7db1579.zip
Do idna-to-ascii to the realm we send first in Digest-MD5.
-rw-r--r--util/sasl.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl.lua b/util/sasl.lua
index f1d01aed..b549b7c8 100644
--- a/util/sasl.lua
+++ b/util/sasl.lua
@@ -87,7 +87,7 @@ local function new_digest_md5(realm, password_handler)
qop = "auth",
charset = "utf-8",
algorithm = "md5-sess",
- realm = self.realm});
+ realm = idna_ascii(self.realm)});
return "challenge", challenge
elseif (self.step == 2) then
local response = parse(message)