From fa17838ce0f90b37e134b80762b47567251449c5 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Fri, 13 May 2016 22:29:43 -0300 Subject: [PATCH] should not escape notification message in admin notification plugin --- plugins/admin_notifications/views/admin_notifications_plugin_public/notifications_with_popup.html.erb | 4 ++-- plugins/admin_notifications/views/shared/_notifications_list.html.erb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/admin_notifications/views/admin_notifications_plugin_public/notifications_with_popup.html.erb b/plugins/admin_notifications/views/admin_notifications_plugin_public/notifications_with_popup.html.erb index f735e04..698b65e 100644 --- a/plugins/admin_notifications/views/admin_notifications_plugin_public/notifications_with_popup.html.erb +++ b/plugins/admin_notifications/views/admin_notifications_plugin_public/notifications_with_popup.html.erb @@ -9,12 +9,12 @@
- <%= AdminNotificationsPlugin::NotificationHelper.substitute_variables(notification.message, current_user) %> + <%= AdminNotificationsPlugin::NotificationHelper.substitute_variables(notification.message, current_user).html_safe %>
<% else %>
notification notification-without-title" data-notification="<%=notification.id%>">
- <%= AdminNotificationsPlugin::NotificationHelper.substitute_variables(notification.message, current_user) %> + <%= AdminNotificationsPlugin::NotificationHelper.substitute_variables(notification.message, current_user).html_safe %>
<% end %> diff --git a/plugins/admin_notifications/views/shared/_notifications_list.html.erb b/plugins/admin_notifications/views/shared/_notifications_list.html.erb index 6ee3c4c..aa92968 100644 --- a/plugins/admin_notifications/views/shared/_notifications_list.html.erb +++ b/plugins/admin_notifications/views/shared/_notifications_list.html.erb @@ -23,7 +23,7 @@ <% @notifications.each do |notification| %>
- <%= truncate(notification.message, length: 50) %> + <%= truncate(notification.message.html_safe, length: 50) %>
<% if notification.active? %> -- libgit2 0.21.2