Commit 8e3fbc0
committed
(maint) Don't attempt to decrypt empty strings
If a string is null, we can't use System.Convert.FromBase64String to
get a byte array from it. This commit reverts the previous change to
NugetCommon, and instead puts the check in the DefaultEncryptionUtility
to prevent it in any place where we might pass in a null string.1 parent 16f48b3 commit 8e3fbc0
2 files changed
Lines changed: 7 additions & 1 deletion
File tree
- src/chocolatey
- infrastructure.app/nuget
- infrastructure/cryptography
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
64 | 70 | | |
65 | 71 | | |
66 | 72 | | |
| |||
0 commit comments