Skip to content

Commit 4635eab

Browse files
fix: Remove /r in Mojang publickey string.
1 parent 9f75643 commit 4635eab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/net/modgarden/backend/handler/v1/discord/DiscordBotOAuthHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ public static void authMinecraftAccount(Context ctx) {
338338

339339
key = key.replace("-----BEGIN PUBLIC KEY-----", "")
340340
.replaceAll("\n", "")
341+
.replaceAll("\r", "")
341342
.replace("-----END PUBLIC KEY-----", "");
342343

343344
byte[] bytes = Base64.getDecoder().decode(key);

0 commit comments

Comments
 (0)