mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🔒 Some security vulnerabilities https://github.com/siyuan-note/siyuan/issues/13426
This commit is contained in:
parent
2b5a9f9f1a
commit
e70ed57f6e
5 changed files with 28 additions and 1 deletions
|
|
@ -302,3 +302,7 @@ func GetAbsPathInWorkspace(relPath string) (string, error) {
|
|||
}
|
||||
return "", os.ErrPermission
|
||||
}
|
||||
|
||||
func IsAbsPathInWorkspace(absPath string) bool {
|
||||
return IsSubPath(WorkspaceDir, absPath)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue