Skip to content

Commit 568ab83

Browse files
author
Kit (OpenClaw)
committed
Fix admin help markdown sanitization regression
1 parent 2ace18c commit 568ab83

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

admin/app/controllers/workarea/admin/help_controller.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ def show
2727
search = Search::RelatedHelp.new(ids: [@help_article.id])
2828
@related = Admin::HelpSearchViewModel.new(search, view_model_options)
2929
@article_body = Redcarpet::Markdown.new(
30-
Redcarpet::Render::HTML.new(hard_wrap: true)
30+
Redcarpet::Render::HTML.new(
31+
hard_wrap: true,
32+
filter_html: true,
33+
safe_links_only: true
34+
)
3135
).render(@help_article.body.to_s)
3236
end
3337

0 commit comments

Comments
 (0)