Skip to content

Commit

Permalink
Fixed session key rotation problem with a default empty array on null…
Browse files Browse the repository at this point in the history
… value. (#5896)
  • Loading branch information
SamTV12345 committed Aug 29, 2023
1 parent b1c34b5 commit 4835c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/security/SecretRotator.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class SecretRotator {
// TODO: This is racy. If two instances start up at the same time and there are no existing
// matching publications, each will generate and publish their own paramters. In practice this
// is unlikely to happen, and if it does it can be fixed by restarting both Etherpad instances.
const dbKeys = await db.findKeys(`${this._dbPrefix}:*`, null);
const dbKeys = await db.findKeys(`${this._dbPrefix}:*`, null) || [];
let currentParams = null;
let currentId = null;
const dbWrites = [];
Expand Down

0 comments on commit 4835c8e

Please sign in to comment.