From 9c4cbe17a22b548611cf1fbefecc83a421788e42 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Sat, 12 Apr 2025 22:04:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dssh=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E6=8A=A5length=E7=A9=BA=E6=8C=87=E9=92=88=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在数据加密判断中增加非空检查,避免对未定义或空值进行加密判断- 提高了代码的健壮性和安全性 --- packages/core/pipeline/src/plugin/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/pipeline/src/plugin/api.ts b/packages/core/pipeline/src/plugin/api.ts index 21c28792..e908cab9 100644 --- a/packages/core/pipeline/src/plugin/api.ts +++ b/packages/core/pipeline/src/plugin/api.ts @@ -180,7 +180,7 @@ export abstract class AbstractTaskPlugin implements ITaskPlugin { // @ts-ignore const input = define.input; for (const key in input) { - if (input[key].encrypt) { + if (input[key].encrypt && res[key] != null) { // @ts-ignore this.logger.addSecret(res[key]); }