added protection on insert in database
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user