aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/encodings.c
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-02-10 00:12:48 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-02-10 00:12:48 +0500
commita226e93664a30559b01fa4cade8e99f5963ce708 (patch)
treec2e0386556f3dbe1c5d4d3d26e72a3855e700326 /util-src/encodings.c
parent03384d466b38f6bd0620f5edfba85da0e21589e6 (diff)
downloadprosody-a226e93664a30559b01fa4cade8e99f5963ce708.tar.gz
prosody-a226e93664a30559b01fa4cade8e99f5963ce708.zip
util.encodings: Use STD3 ASCII rules for idna.to_ascii.
Diffstat (limited to 'util-src/encodings.c')
-rw-r--r--util-src/encodings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/encodings.c b/util-src/encodings.c
index 5147512f..c573a330 100644
--- a/util-src/encodings.c
+++ b/util-src/encodings.c
@@ -174,7 +174,7 @@ static int Lidna_to_ascii(lua_State *L) /** idna.to_ascii(s) */
size_t len;
const char *s = luaL_checklstring(L, 1, &len);
char* output = NULL;
- int ret = idna_to_ascii_8z(s, &output, 0);
+ int ret = idna_to_ascii_8z(s, &output, IDNA_USE_STD3_ASCII_RULES);
if (ret == IDNA_SUCCESS) {
lua_pushstring(L, output);
idn_free(output);