mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-10-03 19:10:36 -04:00
[Security fix] Avoid print access token to log
This commit is contained in:
1 parent
b18dc9b6da
commit
4a853ec08f
1 file changed
+1
-1
@@ -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