From 2aea5180a37fe391099f8f6322d4bbd67d90fc42 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Sun, 26 Oct 2008 18:04:40 +0000
Subject: [PATCH] Fix: Fails to create an event

---
 htdocs/core/events.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/htdocs/core/events.class.php b/htdocs/core/events.class.php
index 7f35d11f66d..a23e2f59984 100644
--- a/htdocs/core/events.class.php
+++ b/htdocs/core/events.class.php
@@ -97,7 +97,7 @@ class Events // extends CommonObject
 		$sql.= " '".$_SERVER['REMOTE_ADDR']."',";
 		$sql.= " ".$this->db->idate($this->dateevent).",";
 		$sql.= " ".($user->id?"'".$user->id."'":'NULL').",";
-		$sql.= " '".$this->description."'";
+		$sql.= " '".addslashes($this->description)."'";
 
 		$sql.= ")";
 
-- 
GitLab