mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2026-08-28 05:45:03 -06:00
[Security fix] Avoid print access token to log
This commit is contained in:
parent
b18dc9b6da
commit
4a853ec08f
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue