Skip to content

Commit 719a0f6

Browse files
committed
ACP2E-2959: [Cloud] import cannot be used with directory var
- Fixed the issue.
1 parent 488c103 commit 719a0f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Filesystem/Directory/PathValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function validate(
5454
$actualPath = $this->driver->getRealPathSafety($path);
5555
}
5656

57-
if (preg_match('/(?:^-|\s-)/', $path)
57+
if (preg_match('/(?:^-|\s-\S)/', $path)
5858
|| (
5959
mb_strpos($actualPath, $realDirectoryPath) !== 0
6060
&& rtrim($path, DIRECTORY_SEPARATOR) !== $realDirectoryPath

0 commit comments

Comments
 (0)