diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-02-26 14:21:38 +1100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-02-27 06:16:31 -0800 |
commit | d310d96f50d8b339d0d3278d48c9412867f2a310 (patch) | |
tree | e84397ca6d9daf7b1fac8cef75a2cf1aa8515b9e /app/controllers/admin_request_controller.rb | |
parent | 19655d7daa94124364f81aef90e5c2ae9f9ce81b (diff) |
Make flash message in admin interface html safe
Diffstat (limited to 'app/controllers/admin_request_controller.rb')
-rw-r--r-- | app/controllers/admin_request_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin_request_controller.rb b/app/controllers/admin_request_controller.rb index e39d55c7c..f66c6c8d0 100644 --- a/app/controllers/admin_request_controller.rb +++ b/app/controllers/admin_request_controller.rb @@ -304,7 +304,7 @@ class AdminRequestController < AdminController post_redirect.save! url = main_url(confirm_url(:email_token => post_redirect.email_token, :only_path => true)) - flash[:notice] = 'Send "' + name + '" <<a href="mailto:' + email + '">' + email + '</a>> this URL: <a href="' + url + '">' + url + "</a> - it will log them in and let them upload a response to this request.".html_safe + flash[:notice] = ('Send "' + name + '" <<a href="mailto:' + email + '">' + email + '</a>> this URL: <a href="' + url + '">' + url + "</a> - it will log them in and let them upload a response to this request.").html_safe redirect_to request_admin_url(info_request) end |