1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2025-02-22 14:53:57 +01:00
aerc/lib/parse
Karel Balej 02324e9d9c lib: disallow < in URLs when parsing HTML
Make sure that links placed verbatim inside HTML elements' bodies are
not parsed along with adjacent HTML tags as illustrated in the new test
case.

Also change the existing code to use the idiomatic Go way to get a
set-like functionality.

Changelog-fixed: Parsed links in HTML message parts now do not include
 trailing HTML tags.
Signed-off-by: Karel Balej <balejk@matfyz.cz>
Tested-by: Jakub Růžička <jakub.ruzicka@matfyz.cz>
2025-02-04 15:18:01 +01:00
..
ansi.go log: move package to lib 2024-02-14 23:04:38 +01:00
daterange.go log: move package to lib 2024-02-14 23:04:38 +01:00
daterange_test.go worker: move shared code to lib 2023-10-28 19:24:55 +02:00
header.go log: move package to lib 2024-02-14 23:04:38 +01:00
header_test.go parse msg-id lists more liberally 2023-03-26 21:02:18 +02:00
hyperlinks.go lib: disallow < in URLs when parsing HTML 2025-02-04 15:18:01 +01:00
hyperlinks_test.go lib: disallow < in URLs when parsing HTML 2025-02-04 15:18:01 +01:00
match.go log: move package to lib 2024-02-14 23:04:38 +01:00