Load template page as utf-8 (#1758)

This commit is contained in:
Dawa Ometto
2021-08-30 11:09:29 +02:00
committed by GitHub
parent 371ab21d16
commit 4e8309d3e4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -642,7 +642,7 @@ module Precious
def load_template(path)
template_page = wiki_page(::File.join(path, '_Template')).page || wiki_page('/_Template').page
template_page ? Gollum::TemplateFilter.apply_filters(template_page.raw_data) : nil
template_page ? Gollum::TemplateFilter.apply_filters(template_page.text_data) : nil
end
def update_wiki_page(wiki, page, content, commit, name = nil, format = nil)