From 6ec43e8c144bd836b0cbe7d9a92f5ba1c6bf2e02 Mon Sep 17 00:00:00 2001 From: auooru Date: Mon, 10 Jun 2024 10:10:07 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E9=99=90=E5=88=B6=20e2e-id=20?= =?UTF-8?q?=E9=95=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server.php b/src/Server.php index d35cf97..1c52e84 100644 --- a/src/Server.php +++ b/src/Server.php @@ -367,7 +367,7 @@ private function broadcast(string $clientId, string $message, bool $isCompress, } if ($e2eId !== null) { $_f |= self::FLAG_USE_E2E_ID; - $message = self::BIN_MSG_HEADER . pack('nC', $_f, strlen($e2eId)) . $e2eId . $message; + $message = self::BIN_MSG_HEADER . pack('nC', $_f, strlen($e2eId)) . substr($e2eId, 0, 127) . $message; } else { $message = self::BIN_MSG_HEADER . pack('n', $_f) . $message; }