summaryrefslogtreecommitdiff
path: root/lisp/international/textsec.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/international/textsec.el')
-rw-r--r--lisp/international/textsec.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/international/textsec.el b/lisp/international/textsec.el
index c30d997b4fe..e6a04d93de5 100644
--- a/lisp/international/textsec.el
+++ b/lisp/international/textsec.el
@@ -252,7 +252,10 @@ or use certain other unusual mixtures of characters."
domain)
;; Does IDNA allow it?
(unless (puny-highly-restrictive-domain-p domain)
- (throw 'found (format "`%s' is not highly-restrictive" domain)))
+ (throw
+ 'found
+ (format "`%s' mixes characters from different scripts in suspicious ways"
+ domain)))
;; Check whether any segment of the domain name is confusable with
;; an ASCII-only segment.
(dolist (elem (split-string domain "\\."))