replace spezial chars in username and whiteboardId

This commit is contained in:
rofl256 2018-02-09 00:58:35 +01:00
parent 813c9340b4
commit 6bed1012c9

View File

@ -33,6 +33,9 @@ var whiteboard = {
for(var i in newSettings) { for(var i in newSettings) {
this.settings[i] = newSettings[i]; this.settings[i] = newSettings[i];
} }
this.settings["username"] = this.settings["username"].replace(/[^0-9a-z]/gi, '');
this.settings["whiteboardId"] = this.settings["whiteboardId"].replace(/[^0-9a-z]/gi, '');
var startCoords = []; var startCoords = [];
var svgLine = null; var svgLine = null;
var svgRect = null; var svgRect = null;