From bc1041dd708a878cc76060365b9e65e390ea68e5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 15 Nov 2005 22:42:00 +0000 Subject: [PATCH] La fonction addslashes est plus portable que mysql_real_escape_string --- htdocs/fichinter/fichinter.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fichinter/fichinter.class.php b/htdocs/fichinter/fichinter.class.php index 1317ef67930..0b7d3994c2f 100644 --- a/htdocs/fichinter/fichinter.class.php +++ b/htdocs/fichinter/fichinter.class.php @@ -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";