[ehb54/us3lims_newinst] 07181d: Fix captcha HTTP 500 with ImageMagick >= 6.9.13-45...
Branch: refs/heads/1073-enhancement-csp-us3lims_newinst Home: https://github.com/ehb54/us3lims_newinst Commit: 07181d670f97425c09a9b993ed3bad4c8c1a7a7c https://github.com/ehb54/us3lims_newinst/commit/07181d670f97425c09a9b993ed3b... Author: ehb54 <brookes@uthscsa.edu> Date: 2026-09-10 (Thu, 10 Sep 2026) Changed paths: M cap_bg.jpg M create_captcha.php Log Message: ----------- Fix captcha HTTP 500 with ImageMagick >= 6.9.13-45 (empty EXIF in cap_bg.jpg) cap_bg.jpg carried an empty EXIF profile (6-byte header + 14-byte TIFF body with zero entries). ImageMagick 6.9.13-45+ fails WriteImage() when SyncExifProfile() rejects an EXIF body shorter than 16 bytes, without raising an exception, so Imagick::getImageBlob() throws the generic "empty or invalid image" error and create_captcha.php returns 500. - strip all metadata from cap_bg.jpg losslessly (jpegtran -copy none; pixels unchanged) - call stripImage() after loading the background so any future background file is safe regardless of its metadata Fixes ehb54/ultrascan-tickets#1057 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Commit: 63502f416bdca352142cfdcdb212d3d5998cd38b https://github.com/ehb54/us3lims_newinst/commit/63502f416bdca352142cfdcdb212... Author: emre brookes <ehb54@users.noreply.github.com> Date: 2026-10-01 (Thu, 01 Oct 2026) Changed paths: M cap_bg.jpg M create_captcha.php Log Message: ----------- Merge pull request #24 from ehb54/ehb54-issue-1057 Fix captcha HTTP 500 with ImageMagick >= 6.9.13-45 (empty EXIF in cap_bg.jpg) Commit: fc2739689280be0e457c220f43bfa19142c52225 https://github.com/ehb54/us3lims_newinst/commit/fc2739689280be0e457c220f43bf... Author: aaron-auc <aaron@aucsolutions.com> Date: 2026-10-05 (Mon, 05 Oct 2026) Changed paths: M cap_bg.jpg M create_captcha.php Log Message: ----------- Merge remote-tracking branch 'origin/main' into 971-request-pbs-gfac-cleanup-us3lims_newinst Commit: a147583da5a8e9b7f870c1eaaf7d9107cb193fca https://github.com/ehb54/us3lims_newinst/commit/a147583da5a8e9b7f870c1eaaf7d... Author: aaron-auc <aaron@aucsolutions.com> Date: 2026-10-05 (Mon, 05 Oct 2026) Changed paths: M cap_bg.jpg M create_captcha.php Log Message: ----------- Merge branch '971-request-pbs-gfac-cleanup-us3lims_newinst' into 1073-enhancement-csp-us3lims_newinst Compare: https://github.com/ehb54/us3lims_newinst/compare/e63cbb4cce74...a147583da5a8 To unsubscribe from these emails, change your notification settings at https://github.com/ehb54/us3lims_newinst/settings/notifications
participants (1)
-
aaron-auc