Merged in bugfix/PMCORE-534 (pull request #7218)
PMCORE-534 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
04767138b2
@@ -44,7 +44,7 @@ class ValidationUploadedFiles
|
||||
$validator->addRule()
|
||||
->validate($file, function($file) {
|
||||
$filesystem = new Filesystem();
|
||||
$extension = $filesystem->extension($file->filename);
|
||||
$extension = strtolower($filesystem->extension($file->filename));
|
||||
|
||||
return Bootstrap::getDisablePhpUploadExecution() === 1 && $extension === 'php';
|
||||
})
|
||||
@@ -112,7 +112,7 @@ class ValidationUploadedFiles
|
||||
return false;
|
||||
}
|
||||
|
||||
$extension = $filesystem->extension($file->filename);
|
||||
$extension = strtolower($filesystem->extension($file->filename));
|
||||
$mimeType = $filesystem->mimeType($path);
|
||||
|
||||
$file = new File($path);
|
||||
|
||||
Reference in New Issue
Block a user