From c829757af04fceb8a9013b5f98a0d9d428ed0908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=99=9F=E9=92=B0?= Date: Mon, 28 Oct 2024 17:57:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=85=8D=E7=BD=AE=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E4=B8=AD=E5=8C=85=E5=90=AB=E7=89=B9=E6=AE=8A=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E6=97=B6=E4=B8=8D=E8=83=BD=E6=AD=A3=E5=B8=B8=E5=B0=86?= =?UTF-8?q?=E6=B2=99=E7=AE=B1=E8=B7=AF=E5=BE=84=E8=BD=AC=E6=8D=A2=E4=B8=BA?= =?UTF-8?q?=E7=89=A9=E7=90=86=E8=B7=AF=E5=BE=84=20=EF=BC=88cherry=20picked?= =?UTF-8?q?=20commit=20from=20?= =?UTF-8?q?Signed-off-by:=20Zshengyu26=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/storage_daemon/quota/quota_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/storage_daemon/quota/quota_manager.cpp b/services/storage_daemon/quota/quota_manager.cpp index 7e59e2f3..4d018151 100755 --- a/services/storage_daemon/quota/quota_manager.cpp +++ b/services/storage_daemon/quota/quota_manager.cpp @@ -452,7 +452,8 @@ static void ConvertSandboxRealPath(const uint32_t userId, const std::string &bun } if (!uriString.empty()) { - uriString += sandboxPathStr; + std::string sandboxPathUriStr = AppFileService::SandboxHelper::Encode(sandboxPathStr); + uriString += sandboxPathUriStr; AppFileService::ModuleFileUri::FileUri uri(uriString); // files std::string physicalPath; -- Gitee