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 11c679b commit b45c35dCopy full SHA for b45c35d
lib/internal/Magento/Framework/File/Uploader.php
@@ -720,6 +720,7 @@ private function validateFileId(array $fileId): void
720
if (preg_match('/\.\.(\\\|\/)/', $tmpName) !== 1) {
721
$allowedFolders = [
722
sys_get_temp_dir(),
723
+ $this->directoryList->getPath(DirectoryList::SYS_TMP),
724
$this->directoryList->getPath(DirectoryList::MEDIA),
725
$this->directoryList->getPath(DirectoryList::VAR_DIR),
726
$this->directoryList->getPath(DirectoryList::TMP),
0 commit comments