From a82b7aaf8bbdbf4361cf6c686e4440ad9e7cc9c6 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 23 Sep 2016 16:06:46 +0200 Subject: [PATCH] allow empty names --- www/pad/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/pad/main.js b/www/pad/main.js index f104b4fc4..6956d3e43 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -275,7 +275,7 @@ define([ }; var setName = module.setName = function (newName) { - if (!(typeof(newName) === 'string' && newName.trim())) { return; } + if (!(typeof(newName) === 'string')) { return; } var myUserNameTemp = Cryptpad.fixHTML(newName.trim()); if(myUserNameTemp.length > 32) { myUserNameTemp = myUserNameTemp.substr(0, 32);