]> BookStack Code Mirror - bookstack/commit
Exports: Added rate limits for UI exports 5379/head
authorDan Brown <redacted>
Wed, 1 Jan 2025 15:42:59 +0000 (15:42 +0000)
committerDan Brown <redacted>
Wed, 1 Jan 2025 15:42:59 +0000 (15:42 +0000)
commit1ff28266787b0f160697cdc74dfb05907611fcc6
tree0185b067ca21e98fa419ef28b873c504afcf6438
parent7e31725d48f502a3c51d0382c874affa13fdf8ff
Exports: Added rate limits for UI exports

Just as a measure to prevent potential abuse of these potentially
longer-running endpoints.
Adds test to cover for ZIP exports, but applied to all formats.
app/App/Providers/RouteServiceProvider.php
app/Exports/Controllers/BookExportController.php
app/Exports/Controllers/ChapterExportController.php
app/Exports/Controllers/PageExportController.php
tests/Exports/ZipExportTest.php