Skip to content

Commit

Permalink
Merge pull request #1731 from Ashpan/ELY-2371
Browse files Browse the repository at this point in the history
[ELY-2371] Searching for identity checks if encoded or secret key exists with logical OR not bitwise
  • Loading branch information
Skyllarr committed Jul 21, 2022
2 parents c39d3e8 + 0beb3fe commit b7319d1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -316,7 +316,7 @@ private Path pathFor(String name) {
.toLowerCase(Locale.ROOT)
.replaceAll("[^a-z0-9]", "_");
}
if (secretKey != null | encoded) {
if (secretKey != null || encoded) {
String base32 = ByteIterator.ofBytes(new ByteStringBuilder().append(name).toArray())
.base32Encode(Base32Alphabet.STANDARD, false).drainToString();
normalizedName = secretKey != null ? base32 : normalizedName + "-" + base32;
Expand Down

0 comments on commit b7319d1

Please sign in to comment.