[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 536ad66ae3 1/2: Improve textsec-domain-suspicious-p message
From: |
Lars Ingebrigtsen |
Subject: |
master 536ad66ae3 1/2: Improve textsec-domain-suspicious-p message |
Date: |
Thu, 20 Jan 2022 03:52:22 -0500 (EST) |
branch: master
commit 536ad66ae3713a18460d0fec16bfc9c60b60016c
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
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 c30d997b4f..e6a04d93de 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 "\\."))