mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-21 20:18:47 +08:00
fix(webdav): disable put with empty path (close #3569)
This commit is contained in:
parent
f95d843969
commit
0d3146b51d
@ -296,6 +296,9 @@ func (h *Handler) handlePut(w http.ResponseWriter, r *http.Request) (status int,
|
||||
if err != nil {
|
||||
return status, err
|
||||
}
|
||||
if reqPath == "" {
|
||||
return http.StatusMethodNotAllowed, nil
|
||||
}
|
||||
release, status, err := h.confirmLocks(r, reqPath, "")
|
||||
if err != nil {
|
||||
return status, err
|
||||
|
Loading…
x
Reference in New Issue
Block a user