protect against subtly corrupted user objects
parent
7908f3b4f0
commit
9b4b642d4a
|
@ -295,7 +295,7 @@ define([
|
|||
paths.push(p);
|
||||
}
|
||||
};
|
||||
if (path.length === 1) {
|
||||
if (path.length === 1 && typeof(root) === 'object') {
|
||||
Object.keys(root).forEach(function (key) {
|
||||
var arr = root[key];
|
||||
if (!Array.isArray(arr)) { return; }
|
||||
|
|
|
@ -152,6 +152,7 @@ define([
|
|||
var oldFo = FO.init(parsed.drive, {
|
||||
Cryptpad: Cryptpad
|
||||
});
|
||||
oldFo.fixFiles();
|
||||
var newData = Cryptpad.getStore().getProxy();
|
||||
var newFo = newData.fo;
|
||||
var newRecentPads = proxy.drive[Cryptpad.storageKey];
|
||||
|
|
Loading…
Reference in New Issue