From 61f550c15994c3ad11f520295c255839846b14ae Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 16 May 2006 11:14:53 +0000 Subject: [PATCH] Fix: gestion des apostrophes --- htdocs/project.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/project.class.php b/htdocs/project.class.php index b22142da48d..5ca9587d4c6 100644 --- a/htdocs/project.class.php +++ b/htdocs/project.class.php @@ -60,7 +60,7 @@ class Project { if (trim($this->ref)) { $sql = "INSERT INTO ".MAIN_DB_PREFIX."projet (ref, title, fk_soc, fk_user_creat, dateo) "; - $sql .= " VALUES ('$this->ref', '$this->title', $this->socidp, ".$user->id.",now()) ;"; + $sql .= " VALUES ('".addslashes($this->ref)."', '".addslashes($this->title)."', $this->socidp, ".$user->id.",now()) ;"; if ($this->db->query($sql) ) {