diff --git a/CHANGELOG.md b/CHANGELOG.md index 7268f099d2f..26cd1cdd784 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,7 +19,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - TDB ### Fixed -- TDB +- Removed a possibly duplicated encodeURI() calls in `server-proxy.ts` to prevent doubly encoding +non-ascii paths while adding files from "Connected file share" (issue #4428) ### Security - TDB diff --git a/cvat-core/src/server-proxy.ts b/cvat-core/src/server-proxy.ts index d4441c63a16..de7b3de43d3 100644 --- a/cvat-core/src/server-proxy.ts +++ b/cvat-core/src/server-proxy.ts @@ -243,13 +243,12 @@ class ServerProxy { async function share(directoryArg) { const { backendAPI } = config; - const directory = encodeURI(directoryArg); let response = null; try { response = await Axios.get(`${backendAPI}/server/share`, { proxy: config.proxy, - params: { directory }, + params: { directory: directoryArg }, }); } catch (errorData) { throw generateError(errorData);