Skip to content
Snippets Groups Projects
Commit 96b5d187 authored by Prasad's avatar Prasad
Browse files

Fixed check for incoming file download

parent d7846ee4
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ class Vtiger_ShowFile_Helper {
* While saving the document applying decode_html to save in DB, but this is not happening for the images
* This save happens from mailroom, inbox, record save, document save etc..
*/
if (!empty($encFileName)) {
if (md5($fileName) == $encFileName || md5($sanitizedFileName) == $encFileName) {
if(!empty($storedFileName)){
$finalFilePath = $filePath.$fileId.'_'.$storedFileName;
}else if(is_null($storedFileName)){
......@@ -75,4 +75,4 @@ class Vtiger_ShowFile_Helper {
header("Content-Type: $fileType;charset=UTF-8");
echo $contents;
}
}
\ No newline at end of file
}
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