You can find in attachment a patch for the bug #1546 in the cgi module (sapi/cgi
/cgi_main.c). The bug prevents from specifying of a filename via extended path i
n the URL.
Traditionally the URL form http://www.mysite.org/myphpfile.php/downloadfilename.
is used to download a file which will be provided dynamically by php. This works
 if PHP engine is an Apache module. But not with cgi module.
This patch removes the trailing string from "PATH_TRANSLATED" until it finds a r
eal file specification.

This works great for me. I have tested it on Solaris2.6, but the code is standar
d Unix so it should work on other platforms.

Hope this can be used.

Best regards,

                        Michel Jansens

Service Reseau, Universite Libre de Bruxelles (ULB)


CP 197
Universite Libre de Bruxelles
50 Av. F.Roosevelt 
1050 Bruxelles 


PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to