Files
gitmost/apps/server/src/core
claude code agent 227 c0d312d8f5 harden(transclusion): depth-cap the ProseMirror collectors (#55)
collectPageEmbedsFromPmJson (and the sibling collectors/remap) recursed with no
guard, so a pathological/cyclic non-JSON input could stack-overflow (RangeError).
Add a depth cap (1000, far above any real doc nesting) so such input is handled
gracefully. Normal documents are unaffected. Updates a stale test that asserted
the old throwing behavior.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 03:17:37 +03:00
..
2026-04-27 15:16:26 +01:00
fix
2026-03-02 22:09:57 +00:00
2026-05-01 14:53:30 +01:00
2026-05-10 18:14:15 +01:00
2026-04-12 22:06:25 +01:00
2026-04-13 23:34:40 +01:00
2026-05-10 18:14:15 +01:00