diff --git a/www/drive/main.js b/www/drive/main.js index 94c5d91b2..3aa67815c 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -1940,7 +1940,7 @@ define([ var setName = APP.setName = function (newName) { if (typeof(newName) !== 'string') { return; } - var myUserNameTemp = Cryptpad.fixHTML(newName.trim()); + var myUserNameTemp = newName.trim(); if(myUserNameTemp.length > 32) { myUserNameTemp = myUserNameTemp.substr(0, 32); } diff --git a/www/pad/main.js b/www/pad/main.js index c3a746d14..77ea70b81 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -293,7 +293,7 @@ define([ var setName = module.setName = function (newName) { if (typeof(newName) !== 'string') { return; } - var myUserNameTemp = Cryptpad.fixHTML(newName.trim()); + var myUserNameTemp = newName.trim(); if(myUserNameTemp.length > 32) { myUserNameTemp = myUserNameTemp.substr(0, 32); } @@ -528,7 +528,7 @@ define([ Dom = Dom || (new DOMParser()).parseFromString(data,"text/html"); return ('\n' + '\n' + - (typeof(Hyperjson.toString) === 'function'? + (typeof(Hyperjson.toString) === 'function' ? Hyperjson.toString(Hyperjson.fromDOM(Dom.body)): Dom.head.outerHTML) + '\n'); }; diff --git a/www/poll/main.js b/www/poll/main.js index 69954b409..3e619cb96 100644 --- a/www/poll/main.js +++ b/www/poll/main.js @@ -440,7 +440,7 @@ define([ var setName = APP.setName = function (newName) { if (typeof(newName) !== 'string') { return; } - var myUserNameTemp = Cryptpad.fixHTML(newName.trim()); + var myUserNameTemp = newName.trim(); if(myUserNameTemp.length > 32) { myUserNameTemp = myUserNameTemp.substr(0, 32); }