1
0
Fork 0
gophernicus/src
Zachary Lee Andrews 6206c24b7e
Update menu.c: Fix JPEG detection.
The existing JPEG detection logic is too restrictive because it checks for the file header "FF D8 FF E0", which only matches JFIF-type JPEG images... Meanwhile EXIF JPEG images are more common these days.

For reference:
FF D8 = JPEG SOI (Start of Image) header
FF-D8-FF-E0 = JFIF
FF-D8-FF-E1 = EXIF
FF-D8-FF-E2 = CIFF
FF-D8-FF-E8 = SPIFF

As you can see checking for the SOI and then FF matches all extent types of JPEG images. \o/
2024-02-27 12:23:16 -05:00
..
bin2c.c Spaces to Tabs as per consensus in #56 2020-02-05 19:19:42 +11:00
file.c Merge pull request #103 from omar-polo/missing-die-fixes 2024-02-27 11:15:15 +00:00
filetypes.conf Filetypes2 (#57) 2020-01-20 22:36:02 +00:00
filetypes.sh Filetypes2 (#57) 2020-01-20 22:36:02 +00:00
gophernicus.c Fix URI inserting aribitary scripts 2024-02-27 22:12:52 +11:00
gophernicus.h Fix URI inserting aribitary scripts 2024-02-27 22:12:52 +11:00
log.c Stop sending log messages to client when in debug mode 2022-05-29 14:27:32 +02:00
menu.c Update menu.c: Fix JPEG detection. 2024-02-27 12:23:16 -05:00
options.c Declare function prototypes explicitly 2020-06-08 13:10:06 +10:00
platform.c Rework logging logic 2020-10-12 20:21:06 +02:00
session.c Rework logging logic 2020-10-12 20:21:06 +02:00
string.c Remove trailing whitespace 2020-04-23 21:18:23 +02:00