Skip to content
Snippets Groups Projects

Fixes #1254 Kcfinder library cleanup

Merged Uma requested to merge uma.s/vtigercrm:kcfinder_cleanup into master
+ 32
8
Compare changes
  • Side-by-side
  • Inline
Files
+ 2
1
@@ -262,7 +262,8 @@ class browser extends uploader {
$this->errorMsg($message);
}
$target = "$dir/" . file::getInexistantFilename($this->file['name'], $dir);
$sanitizedFilename = file::sanitizeFileName($this->file['name']);
$target = "$dir/" . file::getInexistantFilename($sanitizedFilename, $dir);
if (!@move_uploaded_file($this->file['tmp_name'], $target) &&
!@rename($this->file['tmp_name'], $target) &&
Loading