Sanitize anon names

This commit is contained in:
Karina Kwiatek 2022-06-25 10:33:48 +02:00 committed by Karina Kwiatek
parent 4b2c84d0f8
commit 3bb48270a2
1 changed files with 1 additions and 1 deletions

View File

@ -18,6 +18,6 @@ module UserHelper
private private
def anonymous_name(context_user) def anonymous_name(context_user)
context_user&.profile&.anon_display_name.presence || APP_CONFIG["anonymous_name"] sanitize(context_user&.profile&.anon_display_name.presence || APP_CONFIG["anonymous_name"])
end end
end end