Skip to content
Snippets Groups Projects
Commit bc1041dd authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

La fonction addslashes est plus portable que mysql_real_escape_string

parent e86efa92
No related branches found
No related tags found
No related merge requests found
......@@ -123,7 +123,7 @@ class Fichinter
*/
$sql = "UPDATE ".MAIN_DB_PREFIX."fichinter SET ";
$sql .= " datei = $this->date";
$sql .= ", note = '".mysql_real_escape_string($this->note)."'";
$sql .= ", note = '".addslashes($this->note)."'";
$sql .= ", duree = $this->duree";
$sql .= ", fk_projet = $this->projet_id";
$sql .= " WHERE rowid = $id";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment