From 2bb1b0b9d4557e12ee0484d8fdb7f3c0177ce156 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Wed, 3 Apr 2024 21:24:10 +0200 Subject: [PATCH] post.php: remove double check --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.php b/post.php index 4781b87a..bd7f798c 100644 --- a/post.php +++ b/post.php @@ -1052,7 +1052,7 @@ if (isset($_POST['delete'])) { if ($config['convert_auto_orient'] && ($file['extension'] == 'jpg' || $file['extension'] == 'jpeg')) { // The following code corrects the image orientation. // Currently only works with the 'convert' option selected but it could easily be expanded to work with the rest if you can be bothered. - if (!($config['redraw_image'] || (($config['strip_exif'] && !$config['use_exiftool']) && ($file['extension'] == 'jpg' || $file['extension'] == 'jpeg')))) { + if (!($config['redraw_image'] || (($config['strip_exif'] && !$config['use_exiftool'])))) { if (in_array($config['thumb_method'], array('convert', 'convert+gifsicle', 'gm', 'gm+gifsicle'))) { $exif = @exif_read_data($file['tmp_name']); $gm = in_array($config['thumb_method'], array('gm', 'gm+gifsicle'));