Commit d18b69d1 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Refs #10778: Fix problem detecting ZIP on upload

parent 06eceeb0
Pipeline #3543 passed with stages
in 5 minutes and 15 seconds
......@@ -542,7 +542,9 @@ class Save {
$vars[VAR_FILE_MIME_TYPE] = $statusUpload[FILES_TYPE] ?? '';
// Check for 'unzip'.
if (isset($formElement[FE_FILE_UNZIP]) && $formElement[FE_FILE_UNZIP] != '0' && $vars[VAR_FILE_MIME_TYPE] = 'application/zip') {
if (isset($formElement[FE_FILE_UNZIP])
&& $formElement[FE_FILE_UNZIP] != '0'
&& $vars[VAR_FILE_MIME_TYPE] == 'application/zip') {
$flagDoUnzip = true;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment