diff options
author | 2021-07-13 16:03:51 +0200 | |
---|---|---|
committer | 2021-07-13 16:03:51 +0200 | |
commit | bdba3ff9a9f98c1605c01c0e84f6bd6ed5c3efae (patch) | |
tree | faf0be2250d23aec1af6a6d2bcf321d1d8826ba9 /internal/processing/account/create.go | |
parent | Block/unblock (#96) (diff) | |
download | gotosocial-bdba3ff9a9f98c1605c01c0e84f6bd6ed5c3efae.tar.xz |
sanitize html for statuses + instance (#97)
* sanitize html for statuses + instance
* sanitization
Diffstat (limited to 'internal/processing/account/create.go')
-rw-r--r-- | internal/processing/account/create.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/processing/account/create.go b/internal/processing/account/create.go index a6bfb8a60..8b29f147f 100644 --- a/internal/processing/account/create.go +++ b/internal/processing/account/create.go @@ -23,6 +23,7 @@ import ( apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" + "github.com/superseriousbusiness/gotosocial/internal/util" "github.com/superseriousbusiness/oauth2/v4" ) @@ -44,7 +45,7 @@ func (p *processor) Create(applicationToken oauth2.TokenInfo, application *gtsmo } l.Trace("creating new username and account") - user, err := p.db.NewSignup(form.Username, reason, p.config.AccountsConfig.RequireApproval, form.Email, form.Password, form.IP, form.Locale, application.ID) + user, err := p.db.NewSignup(form.Username, util.RemoveHTML(reason), p.config.AccountsConfig.RequireApproval, form.Email, form.Password, form.IP, form.Locale, application.ID) if err != nil { return nil, fmt.Errorf("error creating new signup in the database: %s", err) } |