From b17b39d4499775c284c695bd9a507569e99a4e0d Mon Sep 17 00:00:00 2001 From: jmlee337 Date: Tue, 12 Mar 2024 14:40:41 +0900 Subject: [PATCH] spectate-broadcast-request check broadcastId is a string --- src/remote/remote.server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote/remote.server.ts b/src/remote/remote.server.ts index ad9644ba0..2c59a144f 100644 --- a/src/remote/remote.server.ts +++ b/src/remote/remote.server.ts @@ -168,7 +168,7 @@ export default class RemoteServer { await throttledRefresh(); } else if (json.op === "spectate-broadcast-request") { const broadcastId = json.broadcastId; - if (!broadcastId) { + if (!broadcastId || typeof broadcastId !== "string") { newConnection.sendUTF(JSON.stringify({ op: "spectate-broadcast-response", err: "no broadcastId" })); return; }