feat: allow dots in resource/folder names

This commit is contained in:
2026-08-30 20:16:05 +02:00
parent 6a95e27e31
commit 36e3fecc11
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ func (s *Server) handleFilesMkdir(w http.ResponseWriter, r *http.Request, root,
}
name := strings.TrimSpace(r.PostForm.Get("name"))
if !resourceNameRe.MatchString(name) {
http.Error(w, "name must be 1-64 letters, digits, '-' or '_'", http.StatusBadRequest)
http.Error(w, "name must be 1-64 letters, digits, dots, '-' or '_'", http.StatusBadRequest)
return
}