]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/message/read.rhtml
Tidy up message sensitisation a bit more, and add sensitisation of
[rails.git] / app / views / message / read.rhtml
index 2e2694c072abbff7fecfd119f808ead812bb2c1d..7c010b9d5e90ebbfb23ed0c69fc9fb9a2b5ed1dc 100644 (file)
@@ -17,7 +17,7 @@
   </tr>
   <tr>
     <th></th>
-    <td><%= h(@message.body) %></td>
+    <td><%= htmlize(@message.body) %></td>
   </tr>
 </table>
 
@@ -25,7 +25,7 @@
 
 <table>
   <tr>
-    <td><%= button_to 'Reply', :controller => 'message', :action => 'new', :user_id => @message.from_user_id %></td>
+    <td><%= button_to 'Reply', :controller => 'message', :action => 'reply', :message_id => @message.id %></td>
     <td><%= button_to 'Mark as unread', :controller => 'message', :action => 'mark', :message_id => @message.id, :mark => 'unread' %></td>
     <td><%= link_to 'Back to inbox', :controller => 'message', :action => 'inbox', :display_name => @user.display_name %></td>
   </tr>
@@ -50,7 +50,7 @@
   </tr>
   <tr>
     <th></th>
-    <td><%= h(@message.body) %></td>
+    <td><%= htmlize(@message.body) %></td>
   </tr>
 </table>