From 50d7834e0990d7577a548d490452e890991e489f Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Mon, 5 May 2025 01:32:25 +0800 Subject: [PATCH] chore: change the separator of the `SAFE_PATHS` environment variable to the default separator of the operating system platform (i.e., `;` in Windows and `:` in other systems) --- constant/path.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/constant/path.go b/constant/path.go index 96f575f3c..909e18f61 100644 --- a/constant/path.go +++ b/constant/path.go @@ -38,7 +38,7 @@ var Path = func() *path { } var safePaths []string - for _, safePath := range strings.Split(os.Getenv("SAFE_PATHS"), ":") { + for _, safePath := range filepath.SplitList(os.Getenv("SAFE_PATHS")) { safePath = strings.TrimSpace(safePath) if len(safePath) == 0 { continue