Skip to content

Commit e115ba6

Browse files
committed
fix fnplugin storagemounts validation
1 parent f9ab532 commit e115ba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/internal/plugins/loader/loader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ func (l *Loader) loadPlugin(res *resource.Resource) (resmap.Configurable, error)
251251
return nil, errors.Errorf("plugin %s with mount path '%s' is not permitted; "+
252252
"mount paths must be relative to the current kustomization directory", res.OrgId(), mount.Src)
253253
}
254-
if strings.HasPrefix(filepath.Clean(mount.Src), "../") {
254+
if strings.HasPrefix(filepath.Clean(mount.Src), "..") {
255255
return nil, errors.Errorf("plugin %s with mount path '%s' is not permitted; "+
256256
"mount paths must be under the current kustomization directory", res.OrgId(), mount.Src)
257257
}

0 commit comments

Comments
 (0)