mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🐛 File system exception when exporting docs containing ../ hyperlinks to Markdown Fix https://github.com/siyuan-note/siyuan/issues/9779
This commit is contained in:
parent
ee351057f1
commit
c9f90c606e
3 changed files with 22 additions and 6 deletions
|
|
@ -190,6 +190,10 @@ func IsSubPath(absPath, toCheckPath string) bool {
|
|||
if 1 > len(absPath) || 1 > len(toCheckPath) {
|
||||
return false
|
||||
}
|
||||
if absPath == toCheckPath { // 相同路径时不认为是子路径
|
||||
return false
|
||||
}
|
||||
|
||||
if gulu.OS.IsWindows() {
|
||||
if filepath.IsAbs(absPath) && filepath.IsAbs(toCheckPath) {
|
||||
if strings.ToLower(absPath)[0] != strings.ToLower(toCheckPath)[0] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue