]> source.dussan.org Git - redmine.git/commitdiff
Rails3: use String#html_safe for render_menu_node() at lib/redmine/menu_manager.rb.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 20 Aug 2011 06:52:25 +0000 (06:52 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 20 Aug 2011 06:52:25 +0000 (06:52 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6471 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/menu_manager.rb

index 129633dad59220efa64b0332a92388293d9f67ba..9f9c78163cc8dc97e0978a96ecaf7f37631ded47 100644 (file)
@@ -176,7 +176,7 @@ module Redmine
         menu_items_for(menu, project) do |node|
           links << render_menu_node(node, project)
         end
-        links.empty? ? nil : content_tag('ul', links.join("\n"))
+        links.empty? ? nil : content_tag('ul', links.join("\n").html_safe)
       end
 
       def render_menu_node(node, project=nil)