fix(review): the SVG drawing check refuses CSS escapes and reads zero-padded character references; the security class reads a file's changed SVG lines joined (GST-911 review pass 1)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
garrytanandcapy-ai[bot] committed 2026-11-02 04:22:06 +00:00
1 parent 8b034914cc
commit d8227c100d
5 files changed
+28 -15

No files matched your search

+2 -1
View File
@@ -183,7 +183,8 @@ directory, dotfiles, `*.config.*`, `package.json`, lockfiles, `tsconfig*.json`,
`manifest.json` and the other tool manifests `lib/review-depth.ts` lists) and a named
consumer each keep the path code, and YAML and TOML are always code. An SVG counts
as data only when its whole text at the head is a drawing (GST-911): SVG drawing
elements and RDF metadata, CSS with no import and no `url()` outside the file, every
elements and RDF metadata, CSS with no import, no `url()` outside the file and no
backslash escape, every
`href` a same-file `#` reference or an inline raster image, no event handler and no
entity declaration, read after character references are decoded; anything else, a
script or `foreignObject` included, keeps it code. More than