James Cole
2 years ago
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
1 changed files with
1 additions and
1 deletions
-
app/Console/Commands/AutoImport.php
|
|
@ -66,7 +66,7 @@ class AutoImport extends Command |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
$argument = (string)($this->argument('directory') ?? './'); // @phpstan-ignore-line
|
|
|
|
$argument = (string)($this->argument('directory') ?? './'); /** @phpstan-ignore-line */ |
|
|
|
$directory = realpath($argument); |
|
|
|
if (!$this->isAllowedPath($directory)) { |
|
|
|
$this->error(sprintf('Path "%s" is not in the list of allowed paths (IMPORT_DIR_ALLOWLIST).', $directory)); |
|
|
|