Synchronized file names with their hyperlink paths in export files

This commit is contained in:
Alexey Verkhovsky 2005-04-08 05:40:11 +00:00
parent e3a48c2732
commit 7152a78476

View file

@ -254,7 +254,7 @@ class WikiController < ApplicationController
Zip::ZipOutputStream.open(tmp_path) do |zip_out|
@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))
end
# add an index file, if exporting to HTML