summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2015-02-24 00:53:59 +0100
committerAlex Legler <alex@a3li.li>2015-02-24 00:53:59 +0100
commit14cafac14c4d411591c846a0f8d5914fa9972414 (patch)
tree7d3ddea273237fde62d4d0eed008a3dd61fea663 /views
parentBetter email escaping regex (diff)
downloadfrontend-14cafac14c4d411591c846a0f8d5914fa9972414.tar.gz
frontend-14cafac14c4d411591c846a0f8d5914fa9972414.tar.bz2
frontend-14cafac14c4d411591c846a0f8d5914fa9972414.zip
Properly escape displaynames
Diffstat (limited to 'views')
-rw-r--r--views/listmonth.erb2
1 files changed, 1 insertions, 1 deletions
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 %>