diff --git a/DocService/sources/DocsCoServer.js b/DocService/sources/DocsCoServer.js index 333cbb278..991a1af44 100644 --- a/DocService/sources/DocsCoServer.js +++ b/DocService/sources/DocsCoServer.js @@ -1579,8 +1579,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) { diff --git a/DocService/sources/canvasservice.js b/DocService/sources/canvasservice.js index 9ba9fd6c0..606e2c8c4 100644 --- a/DocService/sources/canvasservice.js +++ b/DocService/sources/canvasservice.js @@ -1487,7 +1487,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': diff --git a/schema/mysql/removetbl.sql b/schema/mysql/removetbl.sql index 849d59a9e..cab8b7e53 100644 --- a/schema/mysql/removetbl.sql +++ b/schema/mysql/removetbl.sql @@ -1,7 +1,7 @@ -USE onlyoffice; +-- USE onlyoffice; -- -- Drop tables -- DROP TABLE IF EXISTS `doc_callbacks`; DROP TABLE IF EXISTS `doc_changes`; -DROP TABLE IF EXISTS `task_result`; \ No newline at end of file +DROP TABLE IF EXISTS `task_result`;