Skip to content
github.com/cyphar/filepath-securejoin v0.4.1

This release fixes a regression introduced in one of the hardening
features added to filepath-securejoin 0.4.0.

- The restrictions added for root paths passed to SecureJoin in 0.4.0
  was found to be too strict and caused some regressions when folks
  tried to update, so this restriction has been relaxed to only return
  an error if the path contains a ".." component. We still recommend
  users use filepath.Clean (and even filepath.EvalSymlinks) on the root
  path they are using, but at least you will no longer be punished for
  "trivial" unclean paths.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>