]> git.eshelyaron.com Git - emacs.git/commit
Recognise hybrid IPv6/IPv4 addresses in textsec (bug#54624)
authorMattias Engdegård <mattiase@acm.org>
Mon, 11 Apr 2022 14:22:38 +0000 (16:22 +0200)
committerMattias Engdegård <mattiase@acm.org>
Mon, 11 Apr 2022 14:29:24 +0000 (16:29 +0200)
commit26db1ca80e459a640cc6648fb7f94c873def3ddd
treea369bdcd5d121dd2740b7d9764be2390332e5f58
parenta715f2fbe70bb4cbb961e82af95e2965030b4513
Recognise hybrid IPv6/IPv4 addresses in textsec (bug#54624)

* lisp/international/textsec.el (textsec--ipvx-address-p):
  Recognise hybrid addresses like "::ffff:129.55.2.201".
  Combine to a single regexp and translate to rx.
  Remove some regexp ambiguity (relint complaint).
* test/lisp/international/textsec-tests.el (test-suspiction-domain):
  Add test cases.
lisp/international/textsec.el
test/lisp/international/textsec-tests.el