Harden getgroup.php: cast $_POST[group] to int

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Cyd
2026-07-01 14:07:40 -05:00
co-authored by Claude Opus 4.8
parent 7658db0641
commit 0313606cf1
+1 -1
View File
@@ -1,6 +1,6 @@
<?php
date_default_timezone_set('America/Chicago');
if (isset($_POST['group'])) $group = $_POST['group'];
$group = isset($_POST['group']) ? (int)$_POST['group'] : 0;
$link = mysqli_connect('localhost', 'pqs', 'pqs') or die('Could not connect: ' . mysqli_error($link));
mysqli_select_db($link, 'pqs') or die('Could not select database');