Ticket #3 (closed defect: fixed)

Opened 4 years ago

Last modified 3 weeks ago

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

Reported by: thomas.seifert@… Owned by: somebody
Priority: normal Milestone:
Component: core Version:
Severity: normal Keywords:
Cc: Blocked By:
Need User Feedback: no Blocking:

Description

I just found what looks like a bug to me regarding the access to the indexfile and what is returned to $_SERVERPHP_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 .

Attachments

Change History

follow-ups: ↓ 2 ↓ 3   Changed 4 years ago by jan@…

  • status changed from new to closed
  • resolution set to fixed

Fixed in SVN. See [10]

in reply to: ↑ 1   Changed 3 weeks ago by anjy.kc@…

  • status changed from closed to reopened
  • resolution fixed deleted
  • pending unset

Replying to jan@kneschke.de:

Fixed in SVN. See [10]

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

in reply to: ↑ 1   Changed 3 weeks ago by anjay.kc@…

Replying to jan@kneschke.de:

Fixed in SVN. See [10]

CANNTO BE FIXED JUST DEALT WITH IT NOW !

  Changed 3 weeks ago by icy

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.

  Changed 3 weeks ago by hoffie

  • status changed from reopened to closed
  • 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.

Add/Change #3 ($_SERVER["PHP_SELF"] broken if index file is used)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.