diff --git a/www/common/outer/userObject.js b/www/common/outer/userObject.js index 6fce3a936..2ee1a1830 100644 --- a/www/common/outer/userObject.js +++ b/www/common/outer/userObject.js @@ -77,7 +77,7 @@ define([ var id = Util.createRandomInteger(); var data = clone(_data); // If we were given an edit link, encrypt its value if needed - if (data.href) { data.href = exp.cryptor.encrypt(data.href); } + if (data.href && data.href.indexOf('#') !== -1) { data.href = exp.cryptor.encrypt(data.href); } files[FILES_DATA][id] = data; cb(null, id); }; @@ -107,7 +107,7 @@ define([ return void cb("EAUTH"); } var id = Util.createRandomInteger(); - if (data.href) { data.href = exp.cryptor.encrypt(data.href); } + if (data.href && data.href.indexOf('#') !== -1) { data.href = exp.cryptor.encrypt(data.href); } files[SHARED_FOLDERS][id] = data; cb(null, id); };