Project

General

Profile

Bug #3

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

Added by Anonymous over 12 years ago. Updated almost 9 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
core
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

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

History

#1 Updated by Anonymous over 12 years ago

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

Fixed in SVN. See r10

-- jan

#2 Updated by Anonymous almost 9 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

#3 Updated by Anonymous almost 9 years ago

Replying to :

Fixed in SVN. See r10

CANNTO BE FIXED JUST DEALT WITH IT NOW !

-- anjay.kc

#4 Updated by icy almost 9 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.

#5 Updated by hoffie almost 9 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.

Also available in: Atom