From f6e7daaf18270dda00474539bf8365f65c598568 Mon Sep 17 00:00:00 2001
From: Toshi MARUYAMA
Date: Fri, 17 Feb 2012 09:20:49 +0000
Subject: [PATCH] Rails3: view: mail: html_safe for auto_link
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8895 e93f8b46-1217-0410-a6f0-8f06a7374b81
---
app/views/mailer/account_information.html.erb | 2 +-
app/views/mailer/lost_password.html.erb | 2 +-
app/views/mailer/register.html.erb | 2 +-
app/views/mailer/test.html.erb | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/app/views/mailer/account_information.html.erb b/app/views/mailer/account_information.html.erb
index 94c3297ed..70040f8e3 100644
--- a/app/views/mailer/account_information.html.erb
+++ b/app/views/mailer/account_information.html.erb
@@ -8,4 +8,4 @@
<% end %>
-<%= l(:label_login) %>: <%= auto_link(@login_url) %>
+<%= l(:label_login) %>: <%= auto_link(@login_url).html_safe %>
diff --git a/app/views/mailer/lost_password.html.erb b/app/views/mailer/lost_password.html.erb
index 40bb8e9c9..18d1be303 100644
--- a/app/views/mailer/lost_password.html.erb
+++ b/app/views/mailer/lost_password.html.erb
@@ -1,4 +1,4 @@
<%= l(:mail_body_lost_password) %>
-<%= auto_link(@url) %>
+<%= auto_link(@url).html_safe %>
<%= l(:field_login) %>: <%=h @token.user.login %>
diff --git a/app/views/mailer/register.html.erb b/app/views/mailer/register.html.erb
index 145c3d7c9..2e382e6ba 100644
--- a/app/views/mailer/register.html.erb
+++ b/app/views/mailer/register.html.erb
@@ -1,2 +1,2 @@
<%= l(:mail_body_register) %>
-<%= auto_link(@url) %>
+<%= auto_link(@url).html_safe %>
diff --git a/app/views/mailer/test.html.erb b/app/views/mailer/test.html.erb
index 25ad20c51..fe5b6f313 100644
--- a/app/views/mailer/test.html.erb
+++ b/app/views/mailer/test.html.erb
@@ -1,2 +1,2 @@
This is a test email sent by Redmine.
-Redmine URL: <%= auto_link(@url) %>
+Redmine URL: <%= auto_link(@url).html_safe %>