PEAR is archived and read-only

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

Home » File Formats » File_Archive » Bug #6570

Archive names with spaces not handled in Firefox

Details

Submitted2006-01-24 18:34 UTC
Fromedragon at yahoo dot com
Assignedpfischer
StatusClosed
PackageFile_Archive
PHP Version4.4.2
OSWindows XP
Roadmaps(Not assigned)

Comments

[2006-01-24 18:34 UTC] edragon at yahoo dot com

Description:
------------
This problem I've had to fix before and it effects File_Archive (1.5.3). When you send a file with a space it only sends the part of the filename before the space, though it works in IE.

Test script:
---------------
I believe FA can be fixed by enclosing the filename in quotes

in File/Archive/Writer/Output.php

header("Content-disposition: attachment; filename=\"$filename\"");

instead of

header("Content-disposition: attachment; filename=$filename");

[2006-04-11 19:21 UTC] toto at darkside dot tomsk dot ru

And in this file to:
header("Content-type: $mime");
replace (ex.):
header("Content-type: $mime; charset=windows-1251");
Of couse charset need to varibrate and set global. It need
for Opera and maybe other...

[2007-01-08 19:08 UTC] pfischer 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.

Thanks and sorry for the delay!