diff --git a/interfaces/common/src/common_func.cpp b/interfaces/common/src/common_func.cpp index 2a862e1fb08dc4abf95621ff069ba3e3978d0dfc..f4715439dcd0d9fcf42b9f172dc1926b363aa57f 100644 --- a/interfaces/common/src/common_func.cpp +++ b/interfaces/common/src/common_func.cpp @@ -90,6 +90,7 @@ string CommonFunc::GetUriFromPath(const string &path) string realPath = path; NormalizePath(realPath); if (realPath.find(MEDIA_FUSE_PATH_HEAD) == 0) { + realPath = SandboxHelper::Encode(realPath); return realPath.replace(realPath.find(MEDIA_FUSE_PATH_HEAD), MEDIA_FUSE_PATH_HEAD.length(), MEDIA_AUTHORITY); } string packageName = (realPath.find(FILE_MANAGER_URI_HEAD) == 0) ? FILE_MANAGER_AUTHORITY : GetSelfBundleName();