From 267c9a42e04251b63bb6ae34c0169226eb96fd60 Mon Sep 17 00:00:00 2001 From: Laurynas Gadliauskas Date: Wed, 9 Jun 2021 10:44:21 +0300 Subject: [PATCH] fix: rename func param --- http/resource.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http/resource.go b/http/resource.go index e951abb4..ff39194f 100644 --- a/http/resource.go +++ b/http/resource.go @@ -318,14 +318,14 @@ func checkParent(src, dst string) error { // Checks if path contains symlink to out-of-scope targets. // Returns error ErrNotExist if it does. -func checkOutOfScopeSymlink(d *data, path string) error { +func checkOutOfScopeSymlink(d *data, target string) error { lsf, ok := d.user.Fs.(afero.LinkReader) if !ok { return nil } var parts []string - for _, part := range strings.Split(path, string(os.PathSeparator)) { + for _, part := range strings.Split(target, string(os.PathSeparator)) { if part != "" { parts = append(parts, part) }