Skip to content

Commit 92e0fc5

Browse files
committed
PostTitleScrubber should guard against AllowedPostTitleFormattingTypes missing
1 parent 6f2e741 commit 92e0fc5

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'] || []
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)