操作
Defect #1175
完了taggedpages macro shows raw html text
説明
Wiki Extensions taggedpages macro generates text strings with html tags on the wiki page.
Redmine 2.2.1, Wiki Extensions 0.6.1
For example, I write a macro {{taggedpages(Redmine)}} on a editing wiki page, and save the page.
Then the wiki page shows as follows.
<ul class="wikiext-taggedpages"><li><a href="/redmine/projects/redmine-experiment/wiki/Wiki_Extensions">Wiki Extensions</a></li></ul>
- patch for wiki_extensions_taggedpages_macro.rb
--- wiki_extensions_taggedpages_macro.rb.1 2012-11-20 23:57:05.000000000 +0900 +++ wiki_extensions_taggedpages_macro.rb 2013-01-22 01:17:08.196185358 +0900 @@ -66,7 +66,7 @@ o << '<li>' + link_to(page.pretty_title, :controller => 'wiki', :action => 'show', :project_id => page.project, :id => page.title) + '</li>' } o << '</ul>' - return o + return o.html_safe end end end
操作