We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f64dad commit 0127dd0Copy full SHA for 0127dd0
src/Minify.php
@@ -501,7 +501,13 @@ protected function canImportFile($path)
501
return false;
502
}
503
504
- return strlen($path) < PHP_MAXPATHLEN && @is_file($path) && is_readable($path);
+ try {
505
+ return strlen($path) < PHP_MAXPATHLEN && @is_file($path) && is_readable($path);
506
+ }
507
+ // catch openbasedir exceptions which are not caught by @ on is_file()
508
+ catch(\Exception $e) {
509
+ return false;
510
511
512
513
/**
0 commit comments