diff --git a/htdocs/adherents/cotisation.class.php b/htdocs/adherents/cotisation.class.php index 5f1678ebf00a4fe4db71ee0ed5afc128bafb8e83..43de79f9b6df9b736a18250ff019f32b1863085f 100644 --- a/htdocs/adherents/cotisation.class.php +++ b/htdocs/adherents/cotisation.class.php @@ -76,7 +76,7 @@ class Cotisation extends CommonObject $sql.= " VALUES (".$this->fk_adherent.", ".$this->db->idate(mktime()).","; $sql.= " ".$this->db->idate($this->dateh).","; $sql.= " ".$this->db->idate($this->datef).","; - $sql.= " ".$this->amount.",'".$this->note."')"; + $sql.= " ".$this->amount.",'".addslashes($this->note)."')"; dol_syslog("Cotisation::create sql=".$sql); $resql = $this->db->query($sql);