fix(security): potential vulnerability of path traversal attacks EE-5303 (#8728)

This commit is contained in:
cmeng
2023-04-04 09:00:17 +12:00
committed by GitHub
parent 1a451823d9
commit 30a2bb0495
3 changed files with 7 additions and 3 deletions

View File

@@ -94,7 +94,7 @@ func (manager *SwarmStackManager) Logout(endpoint *portainer.Endpoint) error {
// Deploy executes the docker stack deploy command.
func (manager *SwarmStackManager) Deploy(stack *portainer.Stack, prune bool, pullImage bool, endpoint *portainer.Endpoint) error {
filePaths := stackutils.GetStackFilePaths(stack, false)
filePaths := stackutils.GetStackFilePaths(stack, true)
command, args, err := manager.prepareDockerCommandAndArgs(manager.binaryPath, manager.configPath, endpoint)
if err != nil {
return err