From f607af34983efa476a576cf2b52755dc0518d9eb Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Fri, 24 Nov 2023 10:39:49 +0100 Subject: [PATCH] Updated the server.js --- api/server.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/server.js b/api/server.js index d9cbb22..076fa0c 100644 --- a/api/server.js +++ b/api/server.js @@ -142,6 +142,12 @@ io.on("connection", (socket) => { callback(false); return; } + + if (priceInt.toString().indexOf(".") !== -1 || amountInt.toString().indexOf(".") !== -1 + || priceInt.toString().indexOf(",") !== -1 || amountInt.toString().indexOf(",") !== -1) { + callback(false); + return; + } } catch (e) { callback(false); return;