Nice and stable before liveview

This commit is contained in:
2025-10-29 20:38:39 +00:00
parent 76586c0df2
commit 4a8d6bc5d7
21 changed files with 1135 additions and 270 deletions
+2 -3
View File
@@ -20,16 +20,15 @@ export async function POST(request: Request) {
}
// Validate steamId format to prevent SQL injection
const steamId = inputSteamId.trim(); // just in case
const driverGuid = steamId.trim(); // just in case
if (!/^[0-9]{15,20}$/.test(steamId)) {
if (!/^[0-9]{15,20}$/.test(driverGuid)) {
return NextResponse.json(
{ success: false, error: "Invalid Steam ID format" },
{ status: 400 }
);
}
const driverGuid = steamId;
console.log('Parsed driver GUID:', driverGuid);
if (isNaN(driverGuid)) {
return NextResponse.json(