No log files exist if the project path contains square brackets
EmadFathy opened this issue · 0 comments
EmadFathy commented
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:
LogViewer/src/Utilities/Filesystem.php
Line 301 in f81e0f6
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