mirror of https://github.com/certd/certd
fix: 修复ssh插件报length空指针的bug
- 在数据加密判断中增加非空检查,避免对未定义或空值进行加密判断- 提高了代码的健壮性和安全性pull/373/head
parent
835fcfa4ea
commit
9c4cbe17a2
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue