Skip to content

Commit d25f993

Browse files
authored
Merge pull request chocolatey#3171 from gep13/make-user-sensitive-argument
(chocolatey#948) Add user as sensitive argument
2 parents ebef819 + 849d776 commit d25f993

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/chocolatey/infrastructure.app/utility/ArgumentsUtility.cs

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ public static bool SensitiveArgumentsProvided(string commandArguments)
4343
|| commandArguments.ContainsSafe("-key=")
4444
|| commandArguments.ContainsSafe("-apikey")
4545
|| commandArguments.ContainsSafe("-api-key")
46+
|| commandArguments.ContainsSafe("-u ")
47+
|| commandArguments.ContainsSafe("-u=")
48+
|| commandArguments.ContainsSafe("-user ")
49+
|| commandArguments.ContainsSafe("-user=")
4650
;
4751
}
4852

0 commit comments

Comments
 (0)