mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-04-23 19:17:17 -04:00
[Security fix] Avoid print access token to log
This commit is contained in:
@@ -116,8 +116,8 @@ public class JREUtils
|
||||
// Avoid leaking access token to log by replace it.
|
||||
// Also, Minecraft will just print it once.
|
||||
if (checkAccessTokenLeak) {
|
||||
checkAccessTokenLeak = false;
|
||||
if (accessToken != null && accessToken.length() > 5 && currStr.contains(accessToken)) {
|
||||
checkAccessTokenLeak = false;
|
||||
currStr = currStr.replace(accessToken, "ACCESS_TOKEN_HIDDEN");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user