diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2016-12-29 15:55:45 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2016-12-29 21:14:59 +0000 |
commit | 496e0df604efcc9b4d3c8878c7563f01cb0f44ea (patch) | |
tree | 6727287c5b5385d582d51d665c1ecd8e1d568bd5 | |
parent | 9e04f763a9ebdb930edf4dd3297d01d3409b1aa6 (diff) |
I18N: avoid trying to downconvert all-ascii domain names.
With the IDNA-2008 handling downconversion results in lowercasing;
so avoid doing that if possible.
-rw-r--r-- | src/src/utf8.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/src/utf8.c b/src/src/utf8.c index be5bcb078..e8690fc39 100644 --- a/src/src/utf8.c +++ b/src/src/utf8.c @@ -52,6 +52,10 @@ uschar * s1, * s; int rc; #ifdef SUPPORT_I18N_2008 +/* Avoid lowercasing plain-ascii domains */ +if (!string_is_utf8(utf8)) + return string_copy(utf8); + /* Only lowercase is accepted by the library call. A pity since we lose any mixed-case annotation. This does not really matter for a domain. */ { |