Bug #32440 [Com]: Problem with reading SCRIPT_NAME when URL followed by slashes

From: Date: Mon, 29 Aug 2011 08:27:25 +0000
Subject: Bug #32440 [Com]: Problem with reading SCRIPT_NAME when URL followed by slashes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-163074@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=32440&edit=1 ID: 32440 Comment by: Jamesjerseys at 126 dot com Reported by: jpaszek at bnet dot pl Summary: Problem with reading SCRIPT_NAME when URL followed by slashes Status: Bogus Type: Bug Package: Apache2 related Operating System: PLD Linux PHP Version: 5CVS-2005-03-24 (dev) Block user comment: N Private report: N New Comment: http://www.wholesalenfl-jersey.com/ Wholesale MLB Jerseys Previous Comments: ------------------------------------------------------------------------ [2005-03-30 23:57:04] sniper@php.net You're using some patched version of PHP. We only support the ones we build (aka win32 binaries) and the sources, which you can download here: http://www.php.net/download ------------------------------------------------------------------------ [2005-03-30 12:01:32] jpaszek at bnet dot pl The SAPI is Apache 2.0 Handler. On that link You can find the full info about the environment of the server which couse this bug: http://dev.bnet.pl/~jpaszek/tmp/phpinfo.html ------------------------------------------------------------------------ [2005-03-24 18:37:17] sniper@php.net What SAPI are you using? (CGI, apache2handler or apache2filter?) ------------------------------------------------------------------------ [2005-03-24 12:33:28] jpaszek at bnet dot pl Description: ------------ Problem with reading Environment Variable SCRIPT_NAME and PATH_INFO as well. It doesn't give the real script name for requests with added slashes e.g. for the request: http://host.com/info.php/////TEST result is: info.php/// Reproduce code: --------------- GET https://edokumenty.beta/info.php/////TEST print $_SERVER['SCRIPT_NAME']; Expected result: ---------------- info.php Actual result: -------------- /info.php/// ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=32440&edit=1

« previous php.bugs (#163074) next »