Enforce admin CSRF, harden catalog translate, use CMS hotel name for PayPal.
Local Build and Deploy / deploy (push) Successful in 1m38s

Mutating withAdmin routes now require a double-submit CSRF token; translate is capped at 500 items with audit logging; PayPal descriptions prefer siteSettings hotel_name.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
SimoandCursor committed 2026-07-18 19:38:42 +02:00
1 parent 6b884ad25a
commit 2de3696993
18 files changed
+218 -62

No files matched your search

+2 -1
View File
@@ -46,6 +46,7 @@ import { useServerAction } from "@/hooks/use-server-action";
import { invalidateSongPickerCache } from "@/lib/client-cache/song-picker-cache";
import { parseTraxChannels } from "@/lib/trax-format";
import { TraxPlayer } from "./trax-player";
import { adminFetch } from "@/lib/admin-fetch";
interface SoundtrackRow {
id: number;
@@ -434,7 +435,7 @@ function UploadDialog({
fd.append("author", author.trim());
try {
const res = await fetch("/api/admin/sounds/upload", {
const res = await adminFetch("/api/admin/sounds/upload", {
method: "POST",
body: fd,
});