protect against subtly corrupted user objects

This commit is contained in:
ansuz
2017-03-30 17:19:49 +02:00
parent 7908f3b4f0
commit 9b4b642d4a
2 changed files with 2 additions and 1 deletions

View File

@@ -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];