summaryrefslogtreecommitdiff
path: root/internal/processing/account/create.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-07-13 16:03:51 +0200
committerLibravatar GitHub <noreply@github.com>2021-07-13 16:03:51 +0200
commitbdba3ff9a9f98c1605c01c0e84f6bd6ed5c3efae (patch)
treefaf0be2250d23aec1af6a6d2bcf321d1d8826ba9 /internal/processing/account/create.go
parentBlock/unblock (#96) (diff)
downloadgotosocial-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.go3
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)
}