mirror of
https://github.com/documize/community.git
synced 2025-07-24 23:59:47 +02:00
Fingerprint during Ember build
This commit is contained in:
parent
e19c4ad18a
commit
eea8db9288
6 changed files with 47 additions and 36 deletions
|
@ -43,6 +43,7 @@ import (
|
|||
"github.com/documize/community/model/space"
|
||||
"github.com/documize/community/model/user"
|
||||
"github.com/documize/community/model/workflow"
|
||||
"github.com/microcosm-cc/bluemonday"
|
||||
)
|
||||
|
||||
// Handler contains the runtime information such as logging and database.
|
||||
|
@ -270,6 +271,9 @@ func (h *Handler) Update(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
}
|
||||
|
||||
d.Name = bluemonday.StrictPolicy().Sanitize(d.Name)
|
||||
d.Excerpt = bluemonday.StrictPolicy().Sanitize(d.Excerpt)
|
||||
|
||||
err = h.Store.Document.Update(ctx, d)
|
||||
if err != nil {
|
||||
h.Runtime.Rollback(ctx.Transaction)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue