Project

General

Profile

Actions

Bug #3

closed

$_SERVER["PHP_SELF"] broken if index file is used

Added by Anonymous almost 20 years ago. Updated over 16 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:

Description

I just found what looks like a bug to me regarding the access to the
indexfile and what is returned to $_SERVER'PHP_SELF'.

I have a page where I've set the index-file to index.php.
If I access the site just with http://mydomain.de/ and look at the
php-self there I get /index.phpindex.php .
If I access the site with http://mydomain.de/index.php I get the correct
/index.php .

-- thomas.seifert

Actions #1

Updated by Anonymous almost 20 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

Fixed in SVN. See r10

-- jan

Actions #2

Updated by Anonymous over 16 years ago

  • Status changed from Fixed to Need Feedback
  • Resolution deleted (fixed)

Replying to :

Fixed in SVN. See r10

I too have faced the same problem I wrote a page that refers to itself while dynamicaly generating the GUI and the link wants to browse the repository folder where the script resides, is it absolutely necessary to use the "filename.php" or is ther another way around

-- anjy.kc

Actions #3

Updated by Anonymous over 16 years ago

Replying to :

Fixed in SVN. See r10

CANNTO BE FIXED JUST DEALT WITH IT NOW !

-- anjay.kc

Actions #4

Updated by icy over 16 years ago

What are you talking about? DON'T WRITE IN CAPS MKAY?

If you use relative url paths instead of absolute, there's no need for the PHP_SELF thing.

Actions #5

Updated by hoffie over 16 years ago

  • Status changed from Need Feedback to Fixed
  • Resolution set to fixed

The bug is supposed to be fixed, if it is not, please provide details. Although shouting to yourself looks quite funny, it doesn't help us in this case.

Closed again for now.

Actions

Also available in: Atom