Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vtigercrm
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Welcome to Vtiger Community. To gain access for account, please contact [ community @ vtiger.com ]
Show more breadcrumbs
Stefan Warnat
vtigercrm
Commits
96b5d187
Commit
96b5d187
authored
3 years ago
by
Prasad
Browse files
Options
Downloads
Patches
Plain Diff
Fixed check for incoming file download
parent
d7846ee4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Vtiger/helpers/ShowFile.php
+2
-2
2 additions, 2 deletions
modules/Vtiger/helpers/ShowFile.php
with
2 additions
and
2 deletions
modules/Vtiger/helpers/ShowFile.php
+
2
−
2
View file @
96b5d187
...
...
@@ -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
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment