From 826122932380e59c47ce963252cfe16bd46dbc0c Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 17 Mar 2020 13:07:14 +0000 Subject: [PATCH] pass file ending --- src/node/handler/ImportHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/handler/ImportHandler.js b/src/node/handler/ImportHandler.js index 691bea42c..17b306595 100644 --- a/src/node/handler/ImportHandler.js +++ b/src/node/handler/ImportHandler.js @@ -111,7 +111,7 @@ async function doImport(req, res, padId) let destFile = path.join(tmpDirectory, "etherpad_import_" + randNum + "." + exportExtension); // Logic for allowing external Import Plugins - let result = await hooks.aCallAll("import", { srcFile, destFile }); + let result = await hooks.aCallAll("import", { srcFile, destFile, fileEnding }); let importHandledByPlugin = (result.length > 0); // This feels hacky and wrong.. let fileIsEtherpad = (fileEnding === ".etherpad");