From 0269f95e72d597f45d59b05b4620f261bc2cf63f Mon Sep 17 00:00:00 2001 From: Bixilon Date: Tue, 23 May 2023 16:21:31 +0200 Subject: [PATCH] network: restrict chat messages in play state Kind of security relevant, should have never been unrestricted. It only prevents that the server can not use the file:// protocol. --- .../minosoft/protocol/protocol/buffers/play/PlayInByteBuffer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/bixilon/minosoft/protocol/protocol/buffers/play/PlayInByteBuffer.kt b/src/main/java/de/bixilon/minosoft/protocol/protocol/buffers/play/PlayInByteBuffer.kt index b1ae059dc..710e90fdf 100644 --- a/src/main/java/de/bixilon/minosoft/protocol/protocol/buffers/play/PlayInByteBuffer.kt +++ b/src/main/java/de/bixilon/minosoft/protocol/protocol/buffers/play/PlayInByteBuffer.kt @@ -101,7 +101,7 @@ class PlayInByteBuffer : InByteBuffer { if (DebugOptions.LOG_RAW_CHAT) { Log.log(LogMessageType.CHAT_IN, LogLevels.VERBOSE) { TextComponent(string) } } - return ChatComponent.of(string, connection.language, null) + return ChatComponent.of(string, connection.language, null, restricted = true) } fun readParticleData(): ParticleData {