Skip to content

Commit

Permalink
Client: Don't prevent = in secret values provided as args
Browse files Browse the repository at this point in the history
We're not preventing them when `set key=value` or plain `set key` followed by
an interactively provided value, but the code was blocking them for the specific
`set key=value` where `value` contained a literal `=` sign.

Closes #18.
  • Loading branch information
mqudsi committed Jan 24, 2024
1 parent 08e0739 commit 8d6cf88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ void printVersion()
secretValue = parts[1];
bareArguments.RemoveAt(0);
}
else if (bareArguments.Count == 2 && !bareArguments[1].Contains('='))
else if (bareArguments.Count == 2 && !bareArguments[0].Contains('='))
{
secretName = bareArguments[0];
secretValue = bareArguments[1];
Expand Down

0 comments on commit 8d6cf88

Please sign in to comment.