From 15f9963b42c0e85a576facf5db5ecf0e48e37217 Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 7 Jan 2009 07:27:14 +0000 Subject: Fixed missing stripslahes upon posting of new calendar events. --- forum/utils/calendar.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'forum') diff --git a/forum/utils/calendar.php b/forum/utils/calendar.php index 054cdf8..006922c 100644 --- a/forum/utils/calendar.php +++ b/forum/utils/calendar.php @@ -10,6 +10,9 @@ else $date = $date - (date("N", $date) - 1) * 24 * 60 * 60; //echo $date; if($action=="addentry") { + $title = stripslashes($title); + $description = stripslashes($description); + $time = strtotime($txtdate . " " . $txttimefrom . ":00"); if($time !== FALSE) { $duration = strtotime($txtdate . " " . $txttimeto . ":00") - $time; -- cgit v1.2.3