Created attachment 143582 [details]
Ark error message
Ark fails to open a zip file with a file named index.php inside with just the PHP opening tags or specifically "<?php // Silence is golden"
At first, thought was a corrupted zip file but was able to successfully decompress it using unzip, create another archive using arch and have it fail to open also.
STEPS TO REPRODUCE
1. Create a PHP file
2. add opening tags "<?php" or "<?php // Silence is golden"
3. close the file and compress using any tool
4. Try to open generated zip file using ark
Ark will say the Zip file is not supported or corrupted
Open the zip file
(available in About System)
KDE Plasma Version:
KDE Frameworks Version:
Have attached a screenshot of the ark error message
Can you attach such a zip file?
Created attachment 143610 [details]
Have attached the zip file. can be extracted in the terminal but cannot be opened with ark
A possibly relevant merge request was started @ https://invent.kde.org/utilities/ark/-/merge_requests/73
Git commit d4467a99ddb90e5cd57ff243f167f02b96b8e1a1 by Albert Astals Cid.
Committed on 29/11/2021 at 19:40.
Pushed by aacid into branch 'release/21.12'.
Fix loading some zip files
In which QMimeType database says they are actually php files because
mimes are hard. So if we get no offers for the mime type based
on the contents try again with the extension one
M +10 -4 kerfuffle/archive_kerfuffle.cpp
M +2 -2 kerfuffle/mimetypes.cpp
M +8 -1 kerfuffle/mimetypes.h