Skip to content

Commit 1a09764

Browse files
committed
Don't use raw output in timelog (#27186).
git-svn-id: http://svn.redmine.org/redmine/trunk@16983 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent 8d43301 commit 1a09764

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: app/views/timelog/_list.html.erb

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
<% end %>
3434
<tr id="time-entry-<%= entry.id %>" class="time-entry <%= cycle("odd", "even") %> hascontextmenu">
3535
<td class="checkbox hide-when-print"><%= check_box_tag("ids[]", entry.id, false, :id => nil) %></td>
36-
<%= raw @query.inline_columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, entry)}</td>"}.join %>
36+
<% @query.inline_columns.each do |column| %>
37+
<%= content_tag('td', column_content(column, entry), :class => column.css_classes) %>
38+
<% end %>
3739
<td class="buttons">
3840
<% if entry.editable_by?(User.current) -%>
3941
<%= link_to l(:button_edit), edit_time_entry_path(entry),

0 commit comments

Comments
 (0)