allow whiteboardids with ALL the characters

This commit is contained in:
raphael 2020-03-27 17:12:30 +01:00
parent 3dfb641be8
commit 31351ea2e2

View File

@ -1,5 +1,6 @@
var whiteboardId = getQueryVariable("whiteboardid");
whiteboardId = whiteboardId || "myNewWhiteboard";
whiteboardId = unescape(encodeURIComponent(whiteboardId)).replace(/[^a-zA-Z0-9 ]/g, "");
var myUsername = getQueryVariable("username");
var accessToken = getQueryVariable("accesstoken");
myUsername = myUsername || "unknown" + (Math.random() + "").substring(2, 6);