From 34dc9e9dbb85e6e6edd66c91a1a099a805fcd8bb Mon Sep 17 00:00:00 2001 From: Liam <67254223+RealFascinated@users.noreply.github.com> Date: Wed, 19 Oct 2022 17:47:54 +0100 Subject: [PATCH] Add more steam id checks --- src/utils/utils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/utils.js b/src/utils/utils.js index 521af68..813bbf4 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -27,6 +27,9 @@ export default class Utils { if (!steamId) { return false; } + if (steamId.length !== 17) { + return false; + } if (SteamIdCache.has(steamId)) { return SteamIdCache.get(steamId);