diff options
author | Kushal Pandya <kushalspandya@gmail.com> | 2019-01-15 17:22:26 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2019-01-31 18:52:48 +0300 |
commit | 08c1989b0dcbf41410cd1bfc0fbfa5d79df2aedf (patch) | |
tree | 61d0166b1f3164eff76aeed258eb3eca609d8267 /app/views/devise | |
parent | 35b8f103a87811e0a825773aad3e3d04ee85fa9e (diff) |
Use `sanitize_name` to sanitize URL in user full name
Diffstat (limited to 'app/views/devise')
-rw-r--r-- | app/views/devise/mailer/_confirmation_instructions_secondary.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/devise/mailer/_confirmation_instructions_secondary.html.haml b/app/views/devise/mailer/_confirmation_instructions_secondary.html.haml index 3d0a1f622a5..ccc3e734276 100644 --- a/app/views/devise/mailer/_confirmation_instructions_secondary.html.haml +++ b/app/views/devise/mailer/_confirmation_instructions_secondary.html.haml @@ -1,5 +1,5 @@ #content - = email_default_heading("#{@resource.user.name}, you've added an additional email!") + = email_default_heading("#{sanitize_name(@resource.user.name)}, you've added an additional email!") %p Click the link below to confirm your email address (#{@resource.email}) #cta = link_to 'Confirm your email address', confirmation_url(@resource, confirmation_token: @token) |