Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error when visiting `/_resources/cp` url #2468

Closed
lBodia opened this issue Nov 29, 2019 · 0 comments
Closed

Fatal error when visiting `/_resources/cp` url #2468

lBodia opened this issue Nov 29, 2019 · 0 comments

Comments

@lBodia
Copy link

@lBodia lBodia commented Nov 29, 2019

Describe the bug
Users can see the fatal error which shows the detailed information about the system.

To Reproduce
Steps to reproduce the behavior:

  1. Go to statamic_site/index.php/_resources/cp or statamic_site/_resources/cp (depending on $resources value)
  2. See error, if displaying errors isn't turned off if in php

Expected behavior
404 response is returned

Screenshots
The error shows the detailed information about the system
image

Environment details:

  • Statamic Version 2.11.15

Additional context

  1. The issue is inside statamic/core/Http/ResourceServer/Server.php, in serve() and serve404Response() methods
  2. The method checks the file existence with exists which determines whether a file or directory exists
  3. In the next step is_file check fails and this leads to Exception throwing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.