Skip to content

Commit d4c4e87

Browse files
Merge MAGETWO-92170 into 2.3-bugfixes-081018
2 parents b081e64 + daada97 commit d4c4e87

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,20 +207,22 @@ public function save($destinationFolder, $newFileName = null)
207207
$this->_result = false;
208208
$destinationFile = $destinationFolder;
209209
$fileName = isset($newFileName) ? $newFileName : $this->_file['name'];
210-
$fileName = self::getCorrectFileName($fileName);
210+
$fileName = static::getCorrectFileName($fileName);
211211
if ($this->_enableFilesDispersion) {
212212
$fileName = $this->correctFileNameCase($fileName);
213213
$this->setAllowCreateFolders(true);
214-
$this->_dispretionPath = self::getDispersionPath($fileName);
214+
$this->_dispretionPath = static::getDispersionPath($fileName);
215215
$destinationFile .= $this->_dispretionPath;
216216
$this->_createDestinationFolder($destinationFile);
217217
}
218218

219219
if ($this->_allowRenameFiles) {
220-
$fileName = self::getNewFileName(self::_addDirSeparator($destinationFile) . $fileName);
220+
$fileName = static::getNewFileName(
221+
static::_addDirSeparator($destinationFile) . $fileName
222+
);
221223
}
222224

223-
$destinationFile = self::_addDirSeparator($destinationFile) . $fileName;
225+
$destinationFile = static::_addDirSeparator($destinationFile) . $fileName;
224226

225227
try {
226228
$this->_result = $this->_moveFile($this->_file['tmp_name'], $destinationFile);

nginx.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ location /media/import/ {
161161
}
162162

163163
# PHP entry point for main application
164-
location ~ (index|get|static|report|404|503|health_check)\.php$ {
164+
location ~ ^/(index|get|static|errors/report|errors/404|errors/503|health_check)\.php$ {
165165
try_files $uri =404;
166166
fastcgi_pass fastcgi_backend;
167167
fastcgi_buffers 1024 4k;

0 commit comments

Comments
 (0)