File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
src/opengeodeweb_back/routes Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -327,8 +327,6 @@ def export_project() -> flask.Response:
327327 methods = schemas_dict ["import_project" ]["methods" ],
328328)
329329def import_project () -> flask .Response :
330- # if flask.request.method == "OPTIONS":
331- # return flask.make_response({}, 200)
332330 utils_functions .validate_request (flask .request , schemas_dict ["import_project" ])
333331 if "file" not in flask .request .files :
334332 flask .abort (400 , "No .vease file provided under 'file'" )
@@ -366,7 +364,7 @@ def import_project() -> flask.Response:
366364 if not (
367365 target == project_folder or target .startswith (project_folder + os .sep )
368366 ):
369- flask .abort (400 , "Zip contains unsafe paths" )
367+ flask .abort (400 , "Vease file contains unsafe paths" )
370368 zip_archive .extractall (project_folder )
371369
372370 database_root_path = os .path .join (project_folder , "project.db" )
You can’t perform that action at this time.
0 commit comments