Skip to content

Commit 6166cd6

Browse files
committed
fix: 安全加固 (closed #2726)
1 parent 65e893d commit 6166cd6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/backend/agent/solution_maker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ def get_run_cmd_base_params(self) -> typing.List[str]:
280280
f"-i {shell_quote(self.host.bk_cloud_id)}",
281281
f"-I {shell_quote(self.host.inner_ip or self.host.inner_ipv6)}",
282282
# 安装/下载配置
283-
f"-T {self.dest_dir}",
284-
f"-p {self.agent_config['setup_path']}",
283+
f"-T {shell_quote(self.dest_dir)}",
284+
f"-p {shell_quote(self.agent_config['setup_path'])}",
285285
f"-c {shell_quote(self.token)}",
286286
f"-s {shell_quote(self.pipeline_id)}",
287287
]

0 commit comments

Comments
 (0)