Closed lBodia closed 4 years ago
Describe the bug Users can see the fatal error which shows the detailed information about the system.
To Reproduce Steps to reproduce the behavior:
statamic_site/index.php/_resources/cp
statamic_site/_resources/cp
Expected behavior 404 response is returned
Screenshots The error shows the detailed information about the system
Environment details:
Additional context
statamic/core/Http/ResourceServer/Server.php
serve()
serve404Response()
exists
is_file
Describe the bug Users can see the fatal error which shows the detailed information about the system.
To Reproduce Steps to reproduce the behavior:
statamic_site/index.php/_resources/cp
orstatamic_site/_resources/cp
(depending on $resources value)Expected behavior 404 response is returned
Screenshots The error shows the detailed information about the system![image](https://user-images.githubusercontent.com/20229941/69857391-3448d380-1290-11ea-981d-18f43ef710b2.png)
Environment details:
Additional context
statamic/core/Http/ResourceServer/Server.php
, inserve()
andserve404Response()
methodsexists
which determines whether a file or directory existsis_file
check fails and this leads to Exception throwing