Synchronized file names with their hyperlink paths in export files
This commit is contained in:
parent
e3a48c2732
commit
7152a78476
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ class WikiController < ApplicationController
|
||||||
|
|
||||||
Zip::ZipOutputStream.open(tmp_path) do |zip_out|
|
Zip::ZipOutputStream.open(tmp_path) do |zip_out|
|
||||||
@web.select.by_name.each do |page|
|
@web.select.by_name.each do |page|
|
||||||
zip_out.put_next_entry("#{page.name}.#{file_type}")
|
zip_out.put_next_entry("#{CGI.escape(page.name)}.#{file_type}")
|
||||||
zip_out.puts(block.call(page))
|
zip_out.puts(block.call(page))
|
||||||
end
|
end
|
||||||
# add an index file, if exporting to HTML
|
# add an index file, if exporting to HTML
|
||||||
|
|
Loading…
Reference in a new issue