]> git.eshelyaron.com Git - emacs.git/commit
Make shr mark links with suspicious URLs
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 19 Jan 2022 15:37:05 +0000 (16:37 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 19 Jan 2022 15:37:05 +0000 (16:37 +0100)
commit1bfc086391c3ee0ae8a5ae667b67f1109aa74dc9
tree9d0d18ce1adfd7ada8a641e4b08727d2e2810ded
parent00a694628382ba378978aa4de33bff7d17034c84
Make shr mark links with suspicious URLs

* lisp/international/textsec-check.el (textsec-propertize): New
function.
(textsec-check): Only check, don't alter STRING.

* lisp/international/textsec.el (textsec-url-suspicious-p): New
function.

* lisp/net/shr.el (shr-tag-a): Mark suspicious links.
lisp/international/textsec-check.el
lisp/international/textsec.el
lisp/net/shr.el
test/lisp/international/textsec-tests.el