[Instiki] changing + to _ in html export?

Derek Gulbranson derek at derekgulbranson.com
Wed Aug 17 19:57:33 EDT 2005


On Aug 17, 2005, at 1:02 PM, Derek Gulbranson wrote:

>  I need to change the spaces in the file names that it exports from  
> plus signs to underscores.

nevermind, i figured it out.

i changed:
zip_out.put_next_entry("#{CGI.escape(page.name)}.#{file_type}")
to
zip_out.put_next_entry("#{CGI.escape(page.name).gsub('+', '_')}.# 
{file_type}")

in wiki_controller.rb's Zip::ZipOutputStream.open call ..for posterity.


More information about the Instiki-users mailing list