Skip to content

Commit f196cf3

Browse files
committed
ACP2E-2959: [Cloud] import cannot be used with directory var
- Fixed the CR comments.
1 parent 0940829 commit f196cf3

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-\S)/', $path)
57+
if (preg_match('/(?:^-|\s-\S|[\t\r\n\f])/', $path)
5858
|| (
5959
mb_strpos($actualPath, $realDirectoryPath) !== 0
6060
&& rtrim($path, DIRECTORY_SEPARATOR) !== $realDirectoryPath

0 commit comments

Comments
 (0)