From 11d54256daf0aec1959dd211bb12984b7fd42f08 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 1 Mar 2017 13:10:06 +0100 Subject: [PATCH] Make sure the display name is displayed in the same way everywhere --- www/drive/main.js | 2 +- www/pad/main.js | 4 ++-- www/poll/main.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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); }