@aikidosec/firewall
Version:
Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks
12 lines (11 loc) • 526 B
TypeScript
export declare function containsUnsafePathParts(filePath: string): boolean;
/**
* This function is used for urls, because they can contain a TAB, carriage return or line feed that is silently removed by the URL constructor.
*
* The WHATWG URL spec defines the following:
* - Remove all ASCII tab or newline from input.
* - An ASCII tab or newline is U+0009 TAB, U+000A LF, or U+000D CR.
*
* See https://url.spec.whatwg.org/#url-parsing
*/
export declare function containsUnsafePathPartsUrl(filePath: string): boolean;