1681-engine / updates / safePath
Function: safePath() ​
ts
function safePath(p): boolean;Defined in: src/updates/manifest.ts:71
A path a manifest may name: relative, forward slashes, no . or .. segment, no NUL — nothing that could write outside the web's own folder once joined to it.
Parameters ​
| Parameter | Type |
|---|---|
p | string |
Returns ​
boolean