Project

General

Profile

Defect #1175

taggedpages macro shows raw html text

Added by Toru Takahashi over 6 years ago. Updated over 6 years ago.

Status:
終了(Closed)
Priority:
通常(Normal)
Assignee:
Target version:
Start date:
01/22/2013
Due date:
% Done:

100%

Estimated time:

Description

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
    

Associated revisions

Revision 316bd7ee (diff)
Added by Haru Iida over 6 years ago

fixes #1175 taggedpages macro shows raw html text.

History

#1

Updated by Haru Iida over 6 years ago

  • Assignee set to Haru Iida
  • Target version set to 0.6.2
#2

Updated by Haru Iida over 6 years ago

  • Status changed from 新規(New) to 解決(Resolved)
  • % Done changed from 0 to 100

更新履歴 commit:01af07489f5a で適用されました。

#3

Updated by Haru Iida over 6 years ago

Thank you for your report.
I've just fixed.

#4

Updated by Haru Iida over 6 years ago

  • Status changed from 解決(Resolved) to 終了(Closed)

Also available in: Atom PDF