Commit 54b6ba84ed433c2e501bda1bcac242fbeeaa86d0

Authored by henyxia
1 parent 506cf7ea

Need to magic quote this later

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
sendNews.php
... ... @@ -8,5 +8,5 @@ if(!mysql_select_db('crep', $link))
8 8 echo 'Selection de la base de donnees impossible';
9 9 exit;
10 10 }
11   -$requete = "INSERT INTO `crep`.`news` (`pk` ,`fk_author` ,`created` ,`title` ,`content`) VALUES (NULL , '2', CURDATE(), ".base64_decode($_POST["title"]).", ".base64_decode($_POST["content"]).")";
  11 +$requete = "INSERT INTO `crep`.`news` (`pk` ,`fk_author` ,`created` ,`title` ,`content`) VALUES (NULL , '2', CURDATE(), \"".base64_decode($_POST["title"])."\", \"".base64_decode($_POST["content"])."\")";
12 12 $resultat = mysql_query($requete);
... ...