mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-26 10:26:15 -04:00
Merge pull request #1926 from ether/fix/no-connect-to-corrupt-pad
Fix a whole range of bugs related to corrupted changesets
This commit is contained in:
commit
22e9e5fdcd
2 changed files with 23 additions and 19 deletions
|
@ -1504,6 +1504,7 @@ exports.moveOpsToNewPool = function (cs, oldPool, newPool) {
|
|||
return upToDollar.replace(/\*([0-9a-z]+)/g, function (_, a) {
|
||||
var oldNum = exports.parseNum(a);
|
||||
var pair = oldPool.getAttrib(oldNum);
|
||||
if(!pair) exports.error('Can\'t copy unknown attrib (reference attrib string to non-existant pool entry). Inconsistent attrib state!');
|
||||
var newNum = newPool.putAttrib(pair);
|
||||
return '*' + exports.numToString(newNum);
|
||||
}) + fromDollar;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue