Skip to content

AddVersion's free-typed folder path bypasses the foldersInUse equality check #147

Description

@Zaldaryon

When a user types a folder path manually in AddVersion, trailing slashes and Windows casing differences bypass the foldersInUse equality check. A path that is semantically identical to an existing version's folder passes the guard, allowing the launcher to unpack into (and later delete) a folder the user registered separately.

Fix: normalize both sides of the comparison before checking equality (resolve, lowercase on Windows, strip trailing separator).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions