Skip to content

[BUG] - uninitialized currentPath in Filesystem can enter folders in file system top #219

@djdiskmachine

Description

@djdiskmachine

This part
`
if (currentPath[currentPath.size()-1] != '/')
{
currentPath += "/";
}

return Path(currentPath+leaf);
`

when currentPath is uninitialized will descend into /leaf instead of the intended ./leaf
Piggy shouldn't accidentally give access to folders in the top of the file system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions