mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-05-23 18:38:09 +08:00
chore: rollback incompatible changes to updateConfigs api
This commit is contained in:
parent
d22a893060
commit
a4fcd3af07
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user