From 3bb48270a2fbd4896d289bee99309eb8bbddb618 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sat, 25 Jun 2022 10:33:48 +0200 Subject: [PATCH] Sanitize anon names --- app/helpers/user_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index e633679d..ccc620e9 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -18,6 +18,6 @@ module UserHelper private 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