Harden getgroup.php: cast $_POST[group] to int
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user