fix sqli issues with an int cast

This commit is contained in:
notfire 2025-01-13 09:02:43 -05:00
parent 9cccf18c40
commit 3d0725135c
No known key found for this signature in database
GPG key ID: 3AFDACAAB4E56B16
3 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
<?php
$id = $_GET["id"];
$id = (int)$_GET["id"];
if ($id === null) {
exit();

View file

@ -1,6 +1,6 @@
<?php
$id = $_GET["id"];
$id = (int)$_GET["id"];
if ($id === null) {
exit();

View file

@ -2,7 +2,7 @@
include 'config.php';
$id = $_GET["id"];
$id = (int)$_GET["id"];
if ($id === null) {
exit();