summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-06 22:17:49 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-06 22:17:49 +0100
commit169833bfaf4d3d325273c9f993c63b31a909677f (patch)
treea405a55a08449c73e9113d51292fad473a833add /js
parent0ea8300d978a66500568c3655552c3c176e1bd52 (diff)
downloadthemes-169833bfaf4d3d325273c9f993c63b31a909677f.tar.gz
themes-169833bfaf4d3d325273c9f993c63b31a909677f.tar.bz2
themes-169833bfaf4d3d325273c9f993c63b31a909677f.zip
themes: handle unparseable date strings in bit_date_format modifier
PHP 8.3+ throws DateMalformedStringException instead of a warning when DateTime::__construct() receives an invalid string (e.g. '---' from corrupted EXIF metadata). The existing empty() guard doesn't catch non-empty garbage values. Wrap the DateTime construction in try/catch and add a strtotime() pre-check on the fallback path so both code paths return '' for invalid input. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'js')
0 files changed, 0 insertions, 0 deletions