Skip to content

Commit

Permalink
fix forum topic creation CSP - closes #15675
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jul 9, 2024
1 parent fd6f524 commit 091eb62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/forum/src/main/ui/TopicUi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ final class TopicUi(helpers: Helpers, bits: ForumBits, postUi: PostUi)(

def form(categ: lila.forum.ForumCateg, form: Form[?], captcha: Captcha)(using Context) =
Page("New forum topic")
.csp(_.withInlineIconFont)
.css("bits.forum")
.js(EsmInit("bits.forum"))
.js(captchaEsmInit):
Expand Down

0 comments on commit 091eb62

Please sign in to comment.