mirror of https://github.com/Xhofe/alist
fix(webdav): disable put with empty path (close #3569)
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…
Reference in New Issue