From 09f82a8c2b383208bae2db349837f635a1b83607 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 5 Jun 2007 11:40:42 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20probl=E8me=20d'apostrophe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/bank/account.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/bank/account.class.php b/htdocs/compta/bank/account.class.php index 10cd9c8c5ad..1e562c8ca67 100644 --- a/htdocs/compta/bank/account.class.php +++ b/htdocs/compta/bank/account.class.php @@ -104,7 +104,7 @@ class Account function add_url_line($line_id, $url_id, $url, $label, $type='') { $sql = "INSERT INTO ".MAIN_DB_PREFIX."bank_url (fk_bank, url_id, url, label, type)"; - $sql .= " VALUES ('$line_id', '$url_id', '$url', '$label', '$type')"; + $sql .= " VALUES ('".$line_id."', '".$url_id."', '".$url."', '".addslashes($label)."', '".$type."')"; dolibarr_syslog("Account::add_url_line sql=".$sql); if ($this->db->query($sql))