Skip to content
Snippets Groups Projects
Commit 8b640648 authored by Prasad's avatar Prasad
Browse files

Ensure file-attachment sent is within allowed dir

parent 5cf739e6
No related branches found
No related tags found
No related merge requests found
......@@ -220,6 +220,7 @@ class Emails_MassSaveAjax_View extends Vtiger_Footer_View {
$encryptFileName = Vtiger_Util_Helper::getEncryptedFileName($binFile);
$newFilePath = $upload_file_path . $current_id . "_" . $encryptFileName;
Vtiger_Utils::checkFileAccess($oldFilePath);
copy($oldFilePath, $newFilePath);
$sql1 = "insert into vtiger_crmentity (crmid,smcreatorid,smownerid,setype,description,createdtime,modifiedtime) values(?, ?, ?, ?, ?, ?, ?)";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment