mirror of
https://github.com/logseq/logseq.git
synced 2026-05-20 02:42:49 +00:00
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -59,9 +59,11 @@
|
||||
|
||||
(defn- sub-path?
|
||||
[root-dir path]
|
||||
(let [relative (.relative util/node-path root-dir path)]
|
||||
(let [relative (.relative util/node-path root-dir path)
|
||||
parent-dir-segment? (or (= relative "..")
|
||||
(string/starts-with? relative (str ".." (.-sep util/node-path))))]
|
||||
(or (string/blank? relative)
|
||||
(and (not (string/starts-with? relative ".."))
|
||||
(and (not parent-dir-segment?)
|
||||
(not (.isAbsolute util/node-path relative))))))
|
||||
|
||||
(defn- assert-storage-path!
|
||||
|
||||
Reference in New Issue
Block a user