6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/10/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#8612] Download All Attachments (in .zip file) link generates corrupted zip files
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ . . __ . .. . | \| |/ `\ /|_/ |__/|/\|\__. \/ | \
Comment
> After lots of debugging, I've found that the 0x0a character is added > by the PHP header() function: > > > > - If I remove the call to downloadHeaders function in view.php, I > have no extra character. > > - if I replace the call to downloadHeaders with only one header() > call (content-length one for example), I do have the extra 0x0a > character before $body. > > > > In any case, the zip file generated by $horde_compress->compress(...) > is OK (wrote it down to a file, and tested it successfully with zip > -T) > > > > What I've done, is setting the content-Length header with > strlen($body)+1. Thus, I still have an extra character in the > beginning of the zip file (which does not prevent winzip from > openning it), but I do not miss the last byte of the zip file. > > > > Does anyone have an Idea of why header() acts like this or should I > open a bug on PHP bugtracker ? > > > > Anyway, you can close this ticket, as it is not horde/imp related. > > > > Thanks for your help.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers