php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32440 Problem with reading SCRIPT_NAME when URL followed by slashes
Submitted: 2005-03-24 12:33 UTC Modified: 2005-03-30 23:57 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: jpaszek at bnet dot pl Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5CVS-2005-03-24 (dev) OS: PLD Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jpaszek at bnet dot pl
New email:
PHP Version: OS:

 

 [2005-03-24 12:33 UTC] 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///

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-24 18:37 UTC] sniper@php.net
What SAPI are you using? (CGI, apache2handler or apache2filter?)

 [2005-03-30 12:01 UTC] 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-30 23:57 UTC] 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

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Mar 14 15:01:30 2025 UTC