Fix unsafe link with anonymous shared folder

pull/1/head
yflory 4 years ago
parent ca59a97dec
commit b0352e8252

@ -1125,7 +1125,7 @@ define([
var priv = metadataMgr.getPrivateData(); var priv = metadataMgr.getPrivateData();
var useUnsafe = Util.find(priv, ['settings', 'security', 'unsafeLinks']); var useUnsafe = Util.find(priv, ['settings', 'security', 'unsafeLinks']);
if (useUnsafe === true) { if (useUnsafe === true || APP.newSharedFolder) {
return void window.open(APP.origin + href); return void window.open(APP.origin + href);
} }

Loading…
Cancel
Save