Skip to content

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 ​

ParameterType
pstring

Returns ​

boolean

Released under the MIT License.