mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
fix: change adminOld return type from string to string|array
The closure returned arrays when formData values were arrays (e.g. jury_promoteur), but the PHP return type annotation was :string. PHP 8.x enforces this strictly, causing a fatal TypeError in jury-fieldset.php on add mode.
This commit is contained in:
6
TODO.md
6
TODO.md
@@ -1,7 +1,7 @@
|
||||
# TODO
|
||||
|
||||
> Last updated: 2026-06-11
|
||||
> Context: Removed overtype autosave (403 CSRF bug), replaced with explicit Save button above full-page editor
|
||||
> Last updated: 2026-06-15
|
||||
> Context: Fix FilePond CSRF token staleness caused by autosave token rotation
|
||||
|
||||
## Pending
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
|
||||
## Completed
|
||||
|
||||
- [x] #filepond-csrf-stale Fix FilePond CSRF token going stale when autosave rotates it — headers are now functions that re-read meta tag on each request `(file-upload-filepond.js)` ✓
|
||||
|
||||
- [x] #csp-media-iframe-fix Fix CSP `frame-ancestors 'none'` blocking PDF iframes — replaced `try_files` redirect with direct `fastcgi_pass` in `location = /media` so `add_header` CSP override survives internal nginx redirect `(nginx/xamxam.conf)` ✓
|
||||
|
||||
- [x] #duration-migration Add migration to reintroduce `duration_value` and `duration_unit` columns + update views `(migrations/applied/040_duration_fields.sql)` ✓
|
||||
|
||||
Reference in New Issue
Block a user