Red Hat Bugzilla – Bug 25250
header function broken in php-4.0.4pl1-3
Last modified: 2007-03-26 23:40:00 EDT
I have a form that sets var to some filename and calls the following php
code. I use it to force headers so that a file download occurs without
revealing the path. This worked until php-4.0.4pl1-3. I have the php.ini
set to enable multiple header transmission.
header ("Location: /downloads/$var");
The problem is that a bunch of blank lines now preceed the header.
I also force headers for uploads. My upload function still works.
It turn out that $var from my form somehow picked up additional whitespace. I
corrected the problem with:
header ("Location: $qnx");
But this shouldn't have happened. There isn't anything regarding this in the
Bug #24933 strikes again. The form-parsing code is pretty involved; I'm still
tracing through it to try figuring out where things go awry, but I can guess
that it works in Netscape Navigator....
*** This bug has been marked as a duplicate of 24933 ***