allow whiteboardids with ALL the characters
This commit is contained in:
parent
3dfb641be8
commit
31351ea2e2
@ -1,5 +1,6 @@
|
|||||||
var whiteboardId = getQueryVariable("whiteboardid");
|
var whiteboardId = getQueryVariable("whiteboardid");
|
||||||
whiteboardId = whiteboardId || "myNewWhiteboard";
|
whiteboardId = whiteboardId || "myNewWhiteboard";
|
||||||
|
whiteboardId = unescape(encodeURIComponent(whiteboardId)).replace(/[^a-zA-Z0-9 ]/g, "");
|
||||||
var myUsername = getQueryVariable("username");
|
var myUsername = getQueryVariable("username");
|
||||||
var accessToken = getQueryVariable("accesstoken");
|
var accessToken = getQueryVariable("accesstoken");
|
||||||
myUsername = myUsername || "unknown" + (Math.random() + "").substring(2, 6);
|
myUsername = myUsername || "unknown" + (Math.random() + "").substring(2, 6);
|
||||||
|
Loading…
Reference in New Issue
Block a user