1
0

added protection on insert in database

This commit is contained in:
2022-09-26 11:54:58 +02:00
parent ae357e7e95
commit 943961cca2
3 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ if (!empty($idVotation))
{
if (!empty($method) and !empty($libelle))
{
$query = "INSERT INTO liste_votes VALUES (0, '" . $libelle . "', " . $method . "," . $idVotation . ")";
$query = "INSERT INTO liste_votes VALUES (0, '" . $db->protect($libelle) . "', " . $db->protect($method) . "," . $db->protect($idVotation) . ")";
$db->query($query);
header("Location: " . $$base_url . "/" . $path , TRUE, 301);
return;