projects
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e04f76
)
I18N: avoid trying to downconvert all-ascii domain names.
author
Jeremy Harris
<jgh146exb@wizmail.org>
Thu, 29 Dec 2016 15:55:45 +0000
(15:55 +0000)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Thu, 29 Dec 2016 21:14:59 +0000
(21:14 +0000)
With the IDNA-2008 handling downconversion results in lowercasing;
so avoid doing that if possible.
src/src/utf8.c
patch
|
blob
|
blame
|
history
diff --git
a/src/src/utf8.c
b/src/src/utf8.c
index be5bcb0788176a22bc884502fda86a9ad2a5a27d..e8690fc39da290006dbd5f7448780ebc88181d67 100644
(file)
--- 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. */
{