Skip to content

Commit

Permalink
Update uploader.php fix issue 20098
Browse files Browse the repository at this point in the history
  • Loading branch information
rajneesh1dev committed Jan 8, 2019
1 parent b3d9a05 commit 7f4dffd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ public function move($fileName, $renameFileOff = false)
}

$fileName = preg_replace('/[^a-z0-9\._-]+/i', '', $fileName);
$filePath = $this->_directory->getRelativePath($filePath . $fileName);
$relativePath = $this->_directory->getRelativePath($filePath . $fileName);
$this->_directory->writeFile(
$filePath,
$relativePath,
$read->readAll()
);
}
Expand Down

0 comments on commit 7f4dffd

Please sign in to comment.