laravel / horizon

Dashboard and code-driven configuration for Laravel queues.
https://laravel.com/docs/horizon
MIT License
3.85k stars 651 forks source link

Make the non-existing file in layout.blade within project #1428

Closed marcin-jozwikowski closed 5 months ago

marcin-jozwikowski commented 5 months ago

If the PHPs open_basedir value is configured, any check for a file outside of given scope causes is_file(): open_basedir restriction in effect. File(/vendor/horizon/nonExistentFile) is not within the allowed path(s): error, which prevents the UI from loading.

driesvints commented 5 months ago

@mmachatschek how does this one compare to your own PR? https://github.com/laravel/horizon/pull/1427

mmachatschek commented 5 months ago

@driesvints this should be fixed with #1427 as I use the public path now $nonExistentFileName = public_path('/vendor/horizon/nonExistentFile');

https://github.com/mmachatschek/horizon/blob/a6720ac880159d161aa30d3fff45c85de8d65f9a/resources/views/layout.blade.php#L2

driesvints commented 5 months ago

Closing this one in favour of @mmachatschek's solution.