diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-01-20 08:01:20 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-01-20 08:01:20 +0100 |
commit | 7cfc0bd6a9fe9f04f29091e226d5528224d4d409 (patch) | |
tree | 5dcc792d97dd6dbbecc550e9fa3d0c665d9f6678 /test/lisp/international | |
parent | f9f12086fb9ec037b36f74d1f12daa144c775249 (diff) | |
download | emacs-7cfc0bd6a9fe9f04f29091e226d5528224d4d409.tar.gz |
Check link text domain suspiciousness
* lisp/international/textsec.el (textsec-link-suspicious-p): Check
whether the domain in the link text is suspicious.
Diffstat (limited to 'test/lisp/international')
-rw-r--r-- | test/lisp/international/textsec-tests.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lisp/international/textsec-tests.el b/test/lisp/international/textsec-tests.el index 31e9aefc736..44815ebb39f 100644 --- a/test/lisp/international/textsec-tests.el +++ b/test/lisp/international/textsec-tests.el @@ -195,6 +195,8 @@ (cons "https://www.gnu.org/" "This is a link that doesn't point to fsf.org"))) - ) + (should (textsec-link-suspicious-p + (cons "https://www.gn\N{LEFT-TO-RIGHT ISOLATE}u.org/" + "gn\N{LEFT-TO-RIGHT ISOLATE}u.org")))) ;;; textsec-tests.el ends here |