php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29948 SCRIPT_NAME sometimes contains wrong info
Submitted: 2004-09-02 11:44 UTC Modified: 2004-09-15 15:23 UTC
From: clehardy at betablue dot net Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.3.8 OS: Windows XP Home
Private report: No CVE-ID: None
 [2004-09-02 11:44 UTC] clehardy at betablue dot net
Description:
------------
If you add additional path information after the script name (as in www.domain.com/script.php/passed/arguments/) and the information is a URL (as in www.domain.com/script.php/http://www.php.net/), then $_SERVER['SCRIPT_NAME'] will contain '/script.php/http:'.

This has only been tested with Apache 2.0.50 and PHP 4.3.8 in sapi mode (not CGI).

In my test Linux enviroment, $_SERVER['SCRIPT_NAME'] will contain '/script.php' as expected, but that seems to be because the URL is translated to 'www.domain.com/script.php/http:/www.php.net/' (notice only one slash after http: instead of two).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-15 15:23 UTC] sniper@php.net
PHP sets it to whatever Apache tells it is. Not PHP bug.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 21:01:33 2024 UTC