MCPcopy Index your code
hub / github.com/coder/mux / assertContained

Method assertContained

src/node/services/memoryService.ts:272–272  ·  view source on GitHub ↗

* Symlink-escape prevention: realpath the deepest existing ancestor of the * target and require it to stay inside the (realpathed) root. Throws on escape.

(relPath: string)

Source from the content-addressed store, hash-verified

270 * target and require it to stay inside the (realpathed) root. Throws on escape.
271 */
272 assertContained(relPath: string): Promise<void>;
273}
274
275function isPathWithinRoot(

Callers 2

resolveStoreMethod · 0.65
renameMethod · 0.65

Implementers 1

LocalMemoryStoresrc/node/services/memoryService.ts

Calls

no outgoing calls

Tested by

no test coverage detected