From 2bbc2525f22809c9ecb7f1db9bb6fb32feb4f8f3 Mon Sep 17 00:00:00 2001 From: klakhov Date: Wed, 7 Jun 2023 16:42:58 +0300 Subject: [PATCH] removed replacing `/` with `_` --- CHANGELOG.md | 1 + cvat-core/package.json | 2 +- cvat-core/src/server-proxy.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff29394d6bd7..b466b56f68a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Deletion of uploaded files, including annotations and backups, after they have been uploaded to the server using the TUS protocol but before an RQ job has been initiated. () - Simultaneous creation of tasks or projects with identical names from backups by multiple users.() +- Allowed slashes in export filenames. () ### Security - TDB diff --git a/cvat-core/package.json b/cvat-core/package.json index 932c8284b9c7..a3b7796b9bf5 100644 --- a/cvat-core/package.json +++ b/cvat-core/package.json @@ -1,6 +1,6 @@ { "name": "cvat-core", - "version": "9.1.1", + "version": "9.1.2", "description": "Part of Computer Vision Tool which presents an interface for client-side integration", "main": "src/api.ts", "scripts": { diff --git a/cvat-core/src/server-proxy.ts b/cvat-core/src/server-proxy.ts index 35d15f2501f5..ec692db17aad 100644 --- a/cvat-core/src/server-proxy.ts +++ b/cvat-core/src/server-proxy.ts @@ -731,7 +731,7 @@ function exportDataset(instanceType: 'projects' | 'jobs' | 'tasks') { const params: Params = { ...enableOrganization(), ...configureStorage(targetStorage, useDefaultSettings), - ...(name ? { filename: name.replace(/\//g, '_') } : {}), + ...(name ? { filename: name } : {}), format, };