You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying on a Windows system, I found a problem with verifying that the blade file exists at Laravel\Folio\Pipeline\EnsureNoDirectoryTraversal class.
if (! Str::of(realpath($view->path))->startsWith($state->mountPath.'/')) {
thrownewPossibleDirectoryTraversal;
}
And I solved the problem through the use DIRECTORY_SEPARATOR to be
if (! Str::of(realpath($view->path))->startsWith($state->mountPath . DIRECTORY_SEPARATOR)) {
thrownewPossibleDirectoryTraversal;
}
Thanks,
Steps To Reproduce
Install laravel/folio:^1.0@beta.
Run php artisan folio:install.
Create pages/schedule.blade.php file
The text was updated successfully, but these errors were encountered:
As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.
If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.
Folio Version
1.0.0-beta.1
Laravel Version
10.16.1
PHP Version
8.1.10
Description
When trying on a Windows system, I found a problem with verifying that the blade file exists at
Laravel\Folio\Pipeline\EnsureNoDirectoryTraversal
class.And I solved the problem through the use
DIRECTORY_SEPARATOR
to beThanks,
Steps To Reproduce
php artisan folio:install
.pages/schedule.blade.php
fileThe text was updated successfully, but these errors were encountered: