Skip to content

Commit

Permalink
[pe] Fix double call of encryptPasswordParams with "savefromorigin" c…
Browse files Browse the repository at this point in the history
…ommand; Fix bug 71858
  • Loading branch information
konovalovsergey committed Nov 27, 2024
1 parent fbe5ac3 commit 2f58a16
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions DocService/sources/DocsCoServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1561,8 +1561,6 @@ async function encryptPasswordParams(ctx, data) {
dataWithPassword = data.message;
} else if (data.type === 'auth' && data.openCmd) {
dataWithPassword = data.openCmd;
} else if (data.c === 'savefromorigin') {
dataWithPassword = data;
}
if (dataWithPassword && dataWithPassword.password) {
if (dataWithPassword.password.length > constants.PASSWORD_MAX_LENGTH) {
Expand Down
1 change: 0 additions & 1 deletion DocService/sources/canvasservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -1481,7 +1481,6 @@ exports.downloadAs = function(req, res) {
yield* commandSave(ctx, cmd, outputData);
break;
case 'savefromorigin':
yield docsCoServer.encryptPasswordParams(ctx, cmd);
yield* commandSaveFromOrigin(ctx, cmd, outputData, row && row.password);
break;
case 'sendmm':
Expand Down

0 comments on commit 2f58a16

Please sign in to comment.