Files
hyperframes/packages/studio-server
James RussoandClaude Opus 5.5 724ab39b3f fix(studio-server): buildSubCompositionHtml reads only compositions inside the project (#7482)
* fix(studio-server): buildSubCompositionHtml reads only compositions inside the project

The helper joined projectDir with compPath and read the result, trusting
every caller to have confined the path first. Studio's own preview route
does; an embedder that forgets would serve any readable file. The helper
now resolves compPath with core's resolveWithinProject and returns null
for a path outside the project, the same answer as a missing file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(studio-server): keep subComposition.ts's comment share flat

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(studio-server): the sub-composition head reads only an index.html inside the project

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 08:30:30 +00:00
..
2026-11-09 18:13:13 -08:00