#32440 [Opn->Fbk]: Problem with reading SCRIPT_NAME when URL followed by slashes

From: Date: Thu, 24 Mar 2005 17:37:18 +0000
Subject: #32440 [Opn->Fbk]: Problem with reading SCRIPT_NAME when URL followed by slashes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-77204@lists.php.net to get a copy of this message
 ID:               32440
 Updated by:       sniper@php.net
 Reported By:      jpaszek at bnet dot pl
-Status:           Open
+Status:           Feedback
 Bug Type:         Apache2 related
 Operating System: PLD Linux
 PHP Version:      5CVS-2005-03-24 (dev)
 New Comment:

What SAPI are you using? (CGI, apache2handler or apache2filter?)



Previous Comments:
------------------------------------------------------------------------

[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 http://bugs.php.net/?id=32440&edit=1


Thread (5 messages)

« previous php.bugs (#77204) next »