Skip to content

Commit

Permalink
Changed file detection previous to uploading line.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGhostHunter committed Jan 16, 2020
1 parent 2a298d6 commit f4c7027
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/preload.php.stub
Expand Up @@ -38,10 +38,9 @@ $files = [@list];

foreach ($files as $file) {
try {
if (!@include_once($file) || !file_exists($file)) {
throw new \Exception($file . ' does not exist');
if (!(is_file($file) && is_readable($file))) {
throw new \Exception("{$file} does not exist or unreadable.");
}

@mechanism;
} catch (\Throwable $e) {
echo 'Message: ' . $e->getMessage() . \PHP_EOL;
Expand Down

0 comments on commit f4c7027

Please sign in to comment.