From 536ad66ae3713a18460d0fec16bfc9c60b60016c Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Thu, 20 Jan 2022 09:36:04 +0100 Subject: [PATCH] Improve textsec-domain-suspicious-p message * lisp/international/textsec.el (textsec-domain-suspicious-p): Improve warning message. --- lisp/international/textsec.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 "\\.")) -- 2.39.5