fix: whitespace exploit in ICU selfcare. FIX

This commit is contained in:
ChomeNS
2025-03-30 17:44:40 +07:00
parent 9e7351dca8
commit 363d7a9270
2 changed files with 4 additions and 2 deletions

View File

@@ -96,7 +96,9 @@ public class SelfCarePlugin
@Override
public void commandReceived (PlayerEntry sender, String command) {
final String trimmedCommand = command.trim();
final String trimmedCommand = command
.trim()
.replaceAll("\\s+", " ");
final String controlPart = " control " + bot.profile.getName();