From a4fcd3af07e3fe253bf3e93b35aba83d55f621e4 Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Mon, 12 May 2025 09:56:08 +0800 Subject: [PATCH] chore: rollback incompatible changes to updateConfigs api --- hub/route/configs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hub/route/configs.go b/hub/route/configs.go index 56a9a53d..c43d3ef9 100644 --- a/hub/route/configs.go +++ b/hub/route/configs.go @@ -373,9 +373,9 @@ func updateConfigs(w http.ResponseWriter, r *http.Request) { } else { if req.Path == "" { req.Path = C.Path.Config() - } else if !filepath.IsLocal(req.Path) { + } else if !filepath.IsAbs(req.Path) { render.Status(r, http.StatusBadRequest) - render.JSON(w, r, newError("path is not a valid absolute path")) + render.JSON(w, r, newError("path is not a absolute path")) return }