PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » File Formats » Spreadsheet_Excel_Writer » Bug #2363

Wrong export filename with spaces

Details

Submitted2004-09-21 02:56 UTC
Frompclouds at vnlinux dot org
Assignedxnoguer
StatusClosed
PackageSpreadsheet_Excel_Writer
PHP Version4.3.4
OSLinux
Roadmaps(Not assigned)

Comments

[2004-09-21 02:56 UTC] pclouds at vnlinux dot org

Description:
------------
When you call $xls->send("file name with spaces"), then it will output filename as "file".
I think the header should be
header("Content-Disposition: attachment; filename=\"$filename\"");
instead of
header("Content-Disposition: attachment; filename=$filename");

[2005-02-22 10:06 UTC] smith at backendmedia dot com

Check the php manual for reference:
http://www.php.net/header

// It will be called downloaded.pdf
header('Content-Disposition: attachment; filename="downloaded.pdf"');

[2005-11-05 23:26 UTC] xnoguer at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.