CfParser.validateIncludePath

void validateIncludePath(string normalizedPath, string originalPath, Location loc) @safe pure

Validates an include path for security.

This validation runs AFTER path normalization, so attacks like "foo/../bar" or "foo\..\/bar" are properly detected.

Parameters

normalizedPathThe normalized path to validate
originalPathThe original path (for error messages)
locLocation for error reporting

Throws

CfParseException if the path violates security constraints.