commit:     14cafac14c4d411591c846a0f8d5914fa9972414
Author:     Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Mon Feb 23 23:53:59 2015 +0000
Commit:     Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Mon Feb 23 23:53:59 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=14cafac1

Properly escape displaynames

---
 views/listmonth.erb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/views/listmonth.erb b/views/listmonth.erb
index 76a2244..9f137f0 100644
--- a/views/listmonth.erb
+++ b/views/listmonth.erb
@@ -22,7 +22,7 @@
     <% results['hits']['hits'].each do |message| %>
       <tr>
         <td><a href="../../message/<%= message['_id'] %>"><%= h 
message['_source']['subject'] %></a></td>
-        <td><%= h message['_source']['from_realname'] %></td>
+        <td><%= h 
strip_email_headers(message['_source']['from_realname']).first %></td>
         <td><span class="ag-date"><%= date_format message['_source']['date'] 
%></span></td>
       </tr>
     <% end %>

Reply via email to