mirror of
https://github.com/documize/community.git
synced 2025-08-01 19:45:24 +02:00
Fingerprint during Ember build
This commit is contained in:
parent
e19c4ad18a
commit
eea8db9288
6 changed files with 47 additions and 36 deletions
|
@ -44,6 +44,7 @@ import (
|
|||
"github.com/documize/community/model/space"
|
||||
"github.com/documize/community/model/user"
|
||||
wf "github.com/documize/community/model/workflow"
|
||||
"github.com/microcosm-cc/bluemonday"
|
||||
uuid "github.com/nu7hatch/gouuid"
|
||||
)
|
||||
|
||||
|
@ -99,7 +100,8 @@ func (h *Handler) Add(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
var sp space.Space
|
||||
sp.Name = model.Name
|
||||
sp.Description = model.Description
|
||||
sp.Description = bluemonday.StrictPolicy().Sanitize(model.Description)
|
||||
|
||||
sp.Icon = model.Icon
|
||||
sp.LabelID = model.LabelID
|
||||
sp.RefID = uniqueid.Generate()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue