Manual cherrypick MM-67055: Fix permalink embeds in ws msg (#34893) (#35059)

Automatic Merge
Этот коммит содержится в:
Christopher Poile
2026-01-26 12:23:30 -05:00
коммит произвёл GitHub
родитель 21a86506f9
Коммит 51f2e2fdd5
4 изменённых файлов: 107 добавлений и 0 удалений

Просмотреть файл

@@ -982,6 +982,10 @@ func updatePost(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
// MM-67055: Strip client-supplied metadata.embeds to prevent spoofing.
// This matches createPost behavior.
post.SanitizeInput()
auditRec := c.MakeAuditRecord("updatePost", model.AuditStatusFail)
model.AddEventParameterAuditableToAuditRec(auditRec, "post", &post)
defer c.LogAuditRecWithLevel(auditRec, app.LevelContent)