Commits

Josh Hubbard  committed 335bdc5

Added in some escaped quotes around the Content-Disposition headers in the plans controller. This is to fix a bug which was prohibiting chrome users from exporting fils with commas in this. fix issue #133

  • Participants
  • Parent commits 46ea9f4
  • Tags v1.13

Comments (0)

Files changed (1)

File app/controllers/plans_controller.rb

     respond_with(@plan) do |format|
       format.html { render :layout => 'minimal'}
       format.text {
-        headers["Content-Disposition"] = "attachment; filename=" + filename + ".txt"
+        headers["Content-Disposition"] = "attachment; filename=\"" + filename + ".txt\""
         render :action => 'show.txt.erb', :layout => false,
           :content_type=> 'text/plain'
       }
       format.rtf {
-        headers["Content-Disposition"] = "attachment; filename=" + filename + ".rtf"
+        headers["Content-Disposition"] = "attachment; filename=\"" + filename + ".rtf\""
         render :action => 'show.rtf.erb', 
                :layout => false,
                :content_type=> 'application/rtf'