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 0940829 commit f196cf3Copy full SHA for f196cf3
lib/internal/Magento/Framework/Filesystem/Directory/PathValidator.php
@@ -54,7 +54,7 @@ public function validate(
54
$actualPath = $this->driver->getRealPathSafety($path);
55
}
56
57
- if (preg_match('/(?:^-|\s-\S)/', $path)
+ if (preg_match('/(?:^-|\s-\S|[\t\r\n\f])/', $path)
58
|| (
59
mb_strpos($actualPath, $realDirectoryPath) !== 0
60
&& rtrim($path, DIRECTORY_SEPARATOR) !== $realDirectoryPath
0 commit comments