• Validate a path provided by the user to prevent path traversal attacks

    Parameters

    • input: string

      the input provided by the user

    Returns string

    a validated path