Skip to content

Commit

Permalink
Thumb, jpeg extension not take into account
Browse files Browse the repository at this point in the history
Thumbnail for image with jpeg extension not take into account
Correct issue sebsauvage#128
  • Loading branch information
memiks authored Nov 25, 2020
1 parent 6aa5e01 commit 83a67a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ function guardAgainstDirectoryTraversal($path) {
}

// JPG, GIF and PNG
if (preg_match("/.jpg$|.gif$|.png$/i", $file)) {
if (preg_match("/.jpe?g$|.gif$|.png$/i", $file)) {
//Read EXIF
if (!array_key_exists($file, $img_captions)) {
if ($display_exif == 1) {
Expand Down

0 comments on commit 83a67a3

Please sign in to comment.