mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-06-28 23:06:24 +00:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
@@ -402,6 +402,9 @@ func IsSensitivePath(p string) bool {
|
||||
"/lib",
|
||||
"/srv",
|
||||
"/tmp",
|
||||
"/usr",
|
||||
"/opt",
|
||||
"/sbin",
|
||||
}
|
||||
for _, pre := range prefixes {
|
||||
if strings.HasPrefix(toCheckPathLower, pre) {
|
||||
|
||||
Reference in New Issue
Block a user