Skip to content

Commit 9aa2bef

Browse files
committed
when failing to get AllowedPostTitleFormattingTypes, PostTitleScrubber should use the default allow list
1 parent 92e0fc5 commit 9aa2bef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/helpers/posts_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def initialize
9191
attrs = []
9292
tags = []
9393

94-
allowed_types = SiteSetting['AllowedPostTitleFormattingTypes'] || []
94+
allowed_types = SiteSetting['AllowedPostTitleFormattingTypes'] || ['code', 'italic', 'keyboard']
9595
tags.push('del', 'strike') if allowed_types.include?('strikethrough')
9696
tags << 'code' if allowed_types.include?('code')
9797
tags << 'kbd' if allowed_types.include?('keyboard')

0 commit comments

Comments
 (0)