Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 7c8d4ee

Browse files
Merge pull request #277 from Microsoft/users/scdallam/escape06
escape
2 parents 8b9f153 + 76026c8 commit 7c8d4ee

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: src/agent/common.ts

+8
Original file line numberDiff line numberDiff line change
@@ -442,12 +442,20 @@ function createMaskFunction(jobEnvironment: agentifm.JobEnvironment, config: ICo
442442
value: config.creds.username
443443
};
444444
maskHints.push(maskHint);
445+
maskHint = {
446+
value: encodeURIComponent(config.creds.username)
447+
}
448+
maskHints.push(maskHint);
445449
}
446450
if (config.creds.password) {
447451
var maskHint = {
448452
value: config.creds.password
449453
};
450454
maskHints.push(maskHint);
455+
maskHint = {
456+
value: encodeURIComponent(config.creds.password)
457+
};
458+
maskHints.push(maskHint);
451459
}
452460
}
453461

0 commit comments

Comments
 (0)