Skip to content

assertSafeFtpArgument

function assertSafeFtpArgument(value: string, label?: string): string;

Defined in: src/utils/path.ts:21

Validates that an FTP command argument cannot inject additional command lines.

ParameterTypeDefault valueDescription
valuestringundefinedArgument value to validate.
labelstring"path"Human-readable argument label used in error messages.

string

The original value when it is safe.

ConfigurationError When the value contains CR or LF characters.