mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-05-24 10:58:15 +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 {
|
} else {
|
||||||
if req.Path == "" {
|
if req.Path == "" {
|
||||||
req.Path = C.Path.Config()
|
req.Path = C.Path.Config()
|
||||||
} else if !filepath.IsLocal(req.Path) {
|
} else if !filepath.IsAbs(req.Path) {
|
||||||
render.Status(r, http.StatusBadRequest)
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user