- Verify CSRF on POST /admin/uploads/resize (was the only state-changing
admin route without a check) and cap its body at 1 MB
- limitBody: exact-match /admin/upload and /admin/upload-file instead of
a prefix match that also exempted /admin/uploads/{delete,resize}
- Only honour X-Forwarded-Proto behind a trusted proxy (same rule as
X-Forwarded-For); fall back to the configured base_url scheme for the
session cookie Secure flag and baseURL()
- handleAdminBinSave: return 500 on non-ErrNoRows DB error instead of
dereferencing a nil paste
Co-Authored-By: Claude Fable 5 <[email protected]>