mirror of https://github.com/hashicorp/consul
Browse Source
Passing in an empty quoted argument from the shell currently panics as we never check the length being greater than 0 prior to indexing into the first rune, as illustrated in the test in this commit. We also fix the panic, treating an empty string for data as equivalent to not having passed it in the first place.pull/2635/head
James Nugent
8 years ago
2 changed files with 33 additions and 0 deletions
Loading…
Reference in new issue