ifnex/04_Laravel/app/Http/Controllers
Kazem Alghasi e5cc6a9d15 fix(bridge): resolve corrupted PDF downloads and improve token handling
Relocate PDF and commitment form download logic from shortcode execution
to the `template_redirect` hook to prevent HTML output from corrupting
binary streams.

Key improvements:
- Moved download interception to `template_redirect` to ensure clean
  headers and prevent partial file downloads caused by early buffer
  output.
- Replaced direct `get_user_meta` calls with `IFNEX_User_Bridge::get_user_token`
  to support automatic token renewal and improved authentication reliability.
- Added PDF signature validation (`%PDF` header check) to ensure
  integrity of remote file responses.
- Updated Laravel base controller to include standard `AuthorizesRequests`
  and `ValidatesRequests` traits.
2026-10-03 18:15:46 +03:30
..
Admin feat(commitment-forms): implement end-to-end management and secure file access 2026-10-03 05:58:59 +03:30
Api feat(commitment-forms): implement end-to-end management and secure file access 2026-10-03 05:58:59 +03:30
Controller.php fix(bridge): resolve corrupted PDF downloads and improve token handling 2026-10-03 18:15:46 +03:30
OrderController.php feat(order): implement order creation flow and pricing API 2026-08-04 07:59:23 +03:30
PricingPageController.php feat(pricing): centralize exchange rate management via ExchangeRateService 2026-10-03 07:20:32 +03:30
ShipmentPdfController.php feat(security): implement secure file storage and shipment access control 2026-10-01 03:34:28 +03:30