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 authored and Rajneesh Gupta committed Jan 16, 2019
1 parent d20f927 commit 40f64f9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,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 40f64f9

Please sign in to comment.