UNPKG

@aikidosec/firewall

Version:

Zen by Aikido is an embedded Application Firewall that autonomously protects Node.js apps against common and critical attacks, provides rate limiting, detects malicious traffic (including bots), and more.

12 lines (11 loc) 526 B
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;