Upload the ZIP file referenced in the additional comments section below.
The ZIP is successfully uploaded.
The ZIP fails to upload, it is filtered by InputFilter::isSafeFile
.
Debian 9 x64
PHP 7.2.33
Joomla! 3.9.21
I have traced the error down to this specific check in InputFilter::isSafeFile
:
https://github.com/joomla/joomla-cms/blob/staging/libraries/src/Filter/InputFilter.php#L720
Here is a link to the affected ZIP file (managed to upload by commenting out the return false;
statement in the above check): https://www.limingtonhouseschool.co.uk/files/SDT%20Teacher%20Application%20Pack.zip
The ZIP file in question is very mundane - it is just a simple job application pack containing PDF and DOCX files. It is attached. It triggers the check for the .py
extension - if you grep
this ZIP file it will match this command:
grep "\.py" SDT\ Teacher\ Application\ Pack.zip
I am not sure why this filter checks for instances of a string file extension on binary files, this file just by coincidence results in a match when searching for ".py", despite it not containing any files of that extension.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-09-09 15:35:32 |
Closed_By | ⇒ | Quy |
Duplicate #26408. Thanks for reporting.