We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8009978 commit e608ed0Copy full SHA for e608ed0
helper/chroot/chroot.go
@@ -37,7 +37,7 @@ func isCrossBoundaries(path string) bool {
37
path = filepath.ToSlash(path)
38
path = filepath.Clean(path)
39
40
- return strings.HasPrefix(path, "../") || strings.HasPrefix(path, "..\\")
+ return strings.HasPrefix(path, ".."+string(filepath.Separator))
41
}
42
43
func (fs *ChrootHelper) Create(filename string) (billy.File, error) {
0 commit comments