From 1b6d1de059818bd8d1b67cf38dbce7e35e861e13 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 14 Sep 2021 10:48:27 +0200 Subject: [PATCH] don't accept empty identifiers --- src/Link.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Link.js b/src/Link.js index 72dd539..9261b7f 100644 --- a/src/Link.js +++ b/src/Link.js @@ -131,6 +131,9 @@ export class Link { } static _parse(identifier, eventId = undefined, clientId = null, viaServers = [], webInstances = {}) { + if (!identifier) { + return null; + } let matches; matches = USERID_PATTERN.exec(identifier); if (matches) {