From d50b3f9d287d1bcee4a84f729f9cca29430e4d09 Mon Sep 17 00:00:00 2001 From: Dominik Hebeler <dominik@suma-ev.de> Date: Sat, 13 Jan 2024 20:13:47 +0000 Subject: [PATCH] fix empty parameter check --- pass/app/Key.js | 1 + 1 file changed, 1 insertion(+) diff --git a/pass/app/Key.js b/pass/app/Key.js index 9161d62..3e1f2b8 100644 --- a/pass/app/Key.js +++ b/pass/app/Key.js @@ -392,6 +392,7 @@ class Key { } static IS_VALID_UUID(input_key){ + if(!input_key || typeof input_key != "string") return false; return input_key.match( /^[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i ); -- GitLab