From ec541afc14476c4670c52ba67b3468947d62d236 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 2 Aug 2011 13:22:34 +0000 Subject: [PATCH] HTML escape at app/views/versions/index.html.erb. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6396 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/versions/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/versions/index.html.erb b/app/views/versions/index.html.erb index b8e266afe..56785add2 100644 --- a/app/views/versions/index.html.erb +++ b/app/views/versions/index.html.erb @@ -9,7 +9,7 @@ <% else %>
<% @versions.each do |version| %> -

<%= tag 'a', :name => version.name %><%= link_to_version version %>

+

<%= tag 'a', :name => h(version.name) %><%= link_to_version version %>

<%= render :partial => 'versions/overview', :locals => {:version => version} %> <%= render(:partial => "wiki/content", :locals => {:content => version.wiki_page.content}) if version.wiki_page %> -- 2.39.5