filepath-securejoin icon indicating copy to clipboard operation
filepath-securejoin copied to clipboard

Proposed filepath.SecureJoin implementation

Results 5 filepath-securejoin issues
Sort by recently updated
recently updated
newest added

The error message that is triggered by too many symlink dereferences contains a non-existent path instead of the path to the symlink that causes the loop. The path is set...

Now the Go has their own "generic" interfaces for filesystem roots, maybe it would make sense to migrate to using that rather than our own home-brew thing. Note that we...

Thanks for this package! As you noted in the README, using `SecureJoin()` before `os.OpenFile()` is not always enough if the path components are modified between the 2 functions. Do you...

It would be fairly trivial to implement this, and I suspect some users will need it. I'm not sure if it makes sense to add to this project though, given...

This is based on #13 and is mostly a proof-of-concept to show how `partialLookupInRoot` can be adapted to implement `SecureJoin`. Note that due to the different semantics, there are test...