Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Jan 23, 2015

To show other files with the extension. Otherwise it will appear in the source code files .php and .inc.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to redirect to index.php, there's no need to fall through to the readfile() below. Might as well exit; after sending the header.

@salathe
Copy link
Contributor

salathe commented Jan 23, 2015

Being able to get the source code of *.php, *.inc, etc. files is by design. See the comment at the very top of the file.

@bjori
Copy link
Member

bjori commented Feb 15, 2015

As @salathe said, this is intentional

@bjori bjori closed this Feb 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants