From 4bd0e0f198a3a465612e34fc7f24186d76f0603d Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Mon, 3 Apr 2023 13:08:12 -0400 Subject: [PATCH] Fix cloud import plugin #1325 --- coreplugins/cloudimport/api_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreplugins/cloudimport/api_views.py b/coreplugins/cloudimport/api_views.py index b1fa2dbb..a4100dc0 100644 --- a/coreplugins/cloudimport/api_views.py +++ b/coreplugins/cloudimport/api_views.py @@ -4,7 +4,6 @@ import os from os import path from app import models, pending_actions -from app.security import path_traversal_check from app.plugins.views import TaskView from app.plugins.worker import run_function_async from app.plugins import get_current_plugin @@ -104,6 +103,7 @@ def import_files(task_id, files): import requests from app import models from app.plugins import logger + from app.security import path_traversal_check def download_file(task, file): path = path_traversal_check(task.task_path(file['name']), task.task_path())