diff options
author | FChannel <=> | 2021-01-30 00:36:31 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-30 00:36:31 -0800 |
commit | 2fdaf020b1d952a9c86863c380affceb9ac09c61 (patch) | |
tree | 8d9fea8fefabab49d10ec0abe216aa8e4e72269c /OutboxPost.go | |
parent | 99ac742cafab11131ba53bf3d64105cfba48f6bb (diff) |
trip code name support
Diffstat (limited to 'OutboxPost.go')
-rw-r--r-- | OutboxPost.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OutboxPost.go b/OutboxPost.go index 235611e..b51e7cc 100644 --- a/OutboxPost.go +++ b/OutboxPost.go @@ -355,7 +355,8 @@ func ObjectFromForm(r *http.Request, db *sql.DB, obj ObjectBase) ObjectBase { obj.Preview = CreatePreviewObject(obj.Attachment[0]) } - obj.AttributedTo = EscapeString(r.FormValue("name")) + obj.AttributedTo = CreateNameTripCode(r.FormValue("name")) + obj.AttributedTo = EscapeString(obj.AttributedTo) obj.Name = EscapeString(r.FormValue("subject")) obj.Content = EscapeString(r.FormValue("comment")) |