Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: restrict the html file (#749)
lujiefsi726285e63467
diff --git a/server/resource.go b/server/resource.goindex bbf009edd..9021b044b 100644--- a/server/resource.go+++ b/server/resource.go@@ -7,6 +7,7 @@ import ("net/http""net/url""strconv"+ "strings""time""github.com/usememos/memos/api"@@ -42,6 +43,10 @@ func (s *Server) registerResourceRoutes(g *echo.Group) {}filename := file.Filename+ if strings.HasSuffix(filename, ".html") {+ return echo.NewHTTPError(http.StatusBadRequest, "html file is not allowed")+ }+filetype := file.Header.Get("Content-Type")size := file.Sizesrc, err := file.Open()