Skip to content

Commit

Permalink
fix(webdav): disable put with empty path (close #3569)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Feb 23, 2023
1 parent f95d843 commit 0d3146b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/webdav/webdav.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d3146b

Please sign in to comment.