浏览代码

fix(mobile): safety path join for ios graph files fs operation

charlie 3 年之前
父节点
当前提交
cb307d3cec
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/frontend/config.cljs

+ 1 - 1
src/main/frontend/config.cljs

@@ -388,7 +388,7 @@
 
                  (and (mobile-util/native-ios?) (local-db? repo-url))
                  (let [dir (get-repo-dir repo-url)]
-                   (str dir relative-path))
+                   (util/safe-path-join dir relative-path))
 
                  (and (mobile-util/native-android?) (local-db? repo-url))
                  (let [dir (get-repo-dir repo-url)