fix(agents): reject pathless media and direct file URLs

This commit is contained in:
4gray committed 2026-09-21 04:33:33 +02:00
1 parent 47cfc1ba4a
commit 802d3dc43c
3 files changed
+17 -1

No files matched your search

+2 -1
View File
@@ -65,7 +65,8 @@ Inline iframe srcdoc documents are traversed too, with their own fragment anchor
The first active HTML base href sets reference resolution, including nested srcdoc bases.
Resolved file URLs use native filesystem conversion, including Windows drive paths.
Explicit srcset attributes must contain at least one parsed candidate.
Image and media references require nonempty targets that resolve to files, not directories.
Image and media references require a nonempty path that resolves to a file, not a directory.
Direct file URLs are rejected; use portable repository-relative paths.
Image references check file existence without interpreting image fragments as
Markdown headings; document links keep anchor checks even when sharing a target.
HTML video, audio, source and track `src` assets and video posters use the same