diff --git a/pass/app/Key.js b/pass/app/Key.js index 9161d62a2945f8cb5519ced76a3dd3bfe4b8dc8c..3e1f2b843baa9c6b93ba4c65165b913bb2ad4589 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 );