ARCANEDEV/LogViewer

No log files exist if the project path contains square brackets

EmadFathy opened this issue · 0 comments

Hello,

The wrong behavior:

When opening the log-viewer no log files exist.

The cause:

Using PHP glob() function to get the log files breaks the package if the project path contains square brackets. This is a known issue with glob() function (https://bugs.php.net/bug.php?id=33047).

Example path:

D:\laravel\[2]New\

Glob() is used here:

$files = $this->filesystem->glob(

If you can use another approach to get the log files, it will be great!

Specs:

log-viewer: 8.3.0
PHP: 8.1.6
Laravel: 8.83.23
OS: Windows 10