Skip to content

Commit b45c35d

Browse files
committed
AC-1411: Uploader has wrong dir path for sys tmp
1 parent 11c679b commit b45c35d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/internal/Magento/Framework/File/Uploader.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,7 @@ private function validateFileId(array $fileId): void
720720
if (preg_match('/\.\.(\\\|\/)/', $tmpName) !== 1) {
721721
$allowedFolders = [
722722
sys_get_temp_dir(),
723+
$this->directoryList->getPath(DirectoryList::SYS_TMP),
723724
$this->directoryList->getPath(DirectoryList::MEDIA),
724725
$this->directoryList->getPath(DirectoryList::VAR_DIR),
725726
$this->directoryList->getPath(DirectoryList::TMP),

0 commit comments

Comments
 (0)