mirror of https://github.com/xwiki-labs/cryptpad
Needs to be handled in chainpad-listmap
Revert "Do content checks on the drive so if it gets corrupted, the patch will be rejected"
This reverts commit eaa7b6e8e5
.
This commit is contained in:
parent
eaa7b6e8e5
commit
50da6b3b2e
|
@ -297,15 +297,6 @@ define([
|
||||||
crypto: Crypto.createEncryptor(secret.keys),
|
crypto: Crypto.createEncryptor(secret.keys),
|
||||||
userName: 'fs',
|
userName: 'fs',
|
||||||
logLevel: 1,
|
logLevel: 1,
|
||||||
validateContent: function (content) {
|
|
||||||
try {
|
|
||||||
JSON.parse(content);
|
|
||||||
return true;
|
|
||||||
} catch (e) {
|
|
||||||
console.error("Failed to parse, rejecting patch");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var exp = {};
|
var exp = {};
|
||||||
|
|
Loading…
Reference in New Issue