patch to bug #1546

From: Date: Wed, 21 Feb 2001 11:05:08 +0000
Subject: patch to bug #1546
Groups: php.dev 
Request: Send a blank email to php-dev+get-47133@lists.php.net to get a copy of this message
Hello, 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. exe 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) email: michel.jansens@ulb.ac.be CP 197 Universite Libre de Bruxelles 50 Av. F.Roosevelt 1050 Bruxelles Belgium

Attachment: [application/octet-stream] cgi_main.c.diff
« previous php.dev (#47133) next »