diff options
author | Kushal Pandya <kushalspandya@gmail.com> | 2019-01-15 19:52:26 +0530 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2019-01-31 16:52:48 +0100 |
commit | 08c1989b0dcbf41410cd1bfc0fbfa5d79df2aedf (patch) | |
tree | 61d0166b1f3164eff76aeed258eb3eca609d8267 /app/views/notify/member_invited_email.text.erb | |
parent | 35b8f103a87811e0a825773aad3e3d04ee85fa9e (diff) | |
download | gitlab-ce-08c1989b0dcbf41410cd1bfc0fbfa5d79df2aedf.tar.gz |
Use `sanitize_name` to sanitize URL in user full name
Diffstat (limited to 'app/views/notify/member_invited_email.text.erb')
-rw-r--r-- | app/views/notify/member_invited_email.text.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/notify/member_invited_email.text.erb b/app/views/notify/member_invited_email.text.erb index 0a6393355be..d944c3b4a50 100644 --- a/app/views/notify/member_invited_email.text.erb +++ b/app/views/notify/member_invited_email.text.erb @@ -1,4 +1,4 @@ -You have been invited <%= "by #{member.created_by.name} " if member.created_by %>to join the <%= member_source.human_name %> <%= member_source.model_name.singular %> as <%= member.human_access %>. +You have been invited <%= "by #{sanitize_name(member.created_by.name)} " if member.created_by %>to join the <%= member_source.human_name %> <%= member_source.model_name.singular %> as <%= member.human_access %>. Accept invitation: <%= invite_url(@token) %> Decline invitation: <%= decline_invite_url(@token) %> |