Skip to content

Commit 8009978

Browse files
committed
windows
1 parent 8cd1100 commit 8009978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helper/chroot/chroot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func isCrossBoundaries(path string) bool {
3737
path = filepath.ToSlash(path)
3838
path = filepath.Clean(path)
3939

40-
return strings.HasPrefix(path, "../")
40+
return strings.HasPrefix(path, "../") || strings.HasPrefix(path, "..\\")
4141
}
4242

4343
func (fs *ChrootHelper) Create(filename string) (billy.File, error) {

0 commit comments

Comments
 (0)