post.php: remove ie_mime_type_detection

This commit is contained in:
Zankaria 2025-03-25 22:54:46 +01:00
parent 14c9142e76
commit 56857102e1

View file

@ -1332,15 +1332,6 @@ function handle_post(Context $ctx)
if ($post['has_file']) {
foreach ($post['files'] as $key => &$file) {
if ($file['is_an_image']) {
if ($config['ie_mime_type_detection'] !== false) {
// Check IE MIME type detection XSS exploit
$buffer = file_get_contents($upload, null, null, null, 255);
if (preg_match($config['ie_mime_type_detection'], $buffer)) {
undoImage($post);
error($config['error']['mime_exploit']);
}
}
require_once 'inc/image.php';
// find dimensions of an image using GD