chore: rollback incompatible changes to updateConfigs api

This commit is contained in:
wwqgtxx 2025-05-12 09:56:08 +08:00
parent d22a893060
commit a4fcd3af07

View File

@ -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
}