Skip to content

Commit

Permalink
fix: sanitize updated article
Browse files Browse the repository at this point in the history
  • Loading branch information
ncarlier committed Sep 28, 2024
1 parent ab8f85b commit c0b0e85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/service/articles_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ func (reg *Registry) refreshArticleContent(ctx context.Context, form *model.Arti
if form.Text == nil || *form.Text == "" {
form.Text = &page.Text
}
form.HTML = &page.HTML
html := reg.sanitizer.Sanitize(page.HTML)
form.HTML = &html
form.Image = &page.Image
return nil
}
Expand Down

0 comments on commit c0b0e85

Please sign in to comment.