Skip to content

Commit

Permalink
Filter _Template content. Proposed solution to #1603.
Browse files Browse the repository at this point in the history
  • Loading branch information
bartkamphorst committed Aug 25, 2020
1 parent 986a76c commit c5894dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/gollum/app.rb
Expand Up @@ -355,6 +355,9 @@ class App < Sinatra::Base
if settings.wiki_options[:template_page] then
temppage = wiki_page('/_Template')
@template_page = (temppage.page != nil) ? temppage.page.raw_data : 'Template page option is set, but no /_Template page is present or committed.'
if defined?(Gollum::TemplateFilter)
@template_page = Gollum::TemplateFilter.filter(@template_page)
end
end
wikip = wiki_page(params[:splat].first)
@name = wikip.name
Expand Down

0 comments on commit c5894dd

Please sign in to comment.