From 3e32bd9dfb5c038bd8da5062acc1789210fdc4ed Mon Sep 17 00:00:00 2001
From: root <root@rivolta.investici.org>
Date: Fri, 25 Feb 2011 13:16:55 +0000
Subject: [PATCH] Import weekly-schedule 2.3.2

---
 wp-content/plugins/weekly-schedule/readme.txt          | 3 +++
 wp-content/plugins/weekly-schedule/weekly-schedule.php | 8 ++++----
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/wp-content/plugins/weekly-schedule/readme.txt b/wp-content/plugins/weekly-schedule/readme.txt
index f4abf65ca..9f4cfe526 100644
--- a/wp-content/plugins/weekly-schedule/readme.txt
+++ b/wp-content/plugins/weekly-schedule/readme.txt
@@ -26,6 +26,9 @@ You can see a demonstration of the output of the plugin using a single schedule
 
 == Changelog ==
 
+= 2.3.2 =
+* Made fixes to accept event names with single quotes in their name
+
 = 2.3.1 =
 * Fix check when you change time division to only check items under current schedule for conflicts
 
diff --git a/wp-content/plugins/weekly-schedule/weekly-schedule.php b/wp-content/plugins/weekly-schedule/weekly-schedule.php
index 4ae638757..fc6676f02 100644
--- a/wp-content/plugins/weekly-schedule/weekly-schedule.php
+++ b/wp-content/plugins/weekly-schedule/weekly-schedule.php
@@ -2,7 +2,7 @@
 /*Plugin Name: Weekly Schedule
 Plugin URI: http://yannickcorner.nayanna.biz/wordpress-plugins/
 Description: A plugin used to create a page with a list of TV shows
-Version: 2.3.1
+Version: 2.3.2
 Author: Yannick Lefebvre
 Author URI: http://yannickcorner.nayanna.biz   
 Copyright 2010  Yannick Lefebvre  (email : ylefebvre@gmail.com)    
@@ -1161,7 +1161,7 @@ if ( ! class_exists( 'WS_Admin' ) ) {
 					?>
 					<tr>
 					<td style='width: 180px'>Item Title</td>
-					<td><input style="width:360px" type="text" name="name" <?php if ($mode == "edit") echo "value='" . $selecteditem->name . "'";?>/></td>
+					<td><input style="width:360px" type="text" name="name" <?php if ($mode == "edit") echo 'value="' . stripslashes($selecteditem->name) . '"';?>/></td>
 					</tr>
 					<tr>
 					<td>Category</td>
@@ -1304,7 +1304,7 @@ if ( ! class_exists( 'WS_Admin' ) ) {
 							  <?php foreach($items as $item): ?>
 								<tr>
 								<td class='name column-name' style='background: #FFF'><?php echo $item->id; ?></td>
-								<td style='background: #FFF'><a href='?page=weekly-schedule.php&amp;edititem=<?php echo $item->id; ?>&amp;schedule=<?php echo $schedule; ?>'><strong><?php echo $item->name; ?></strong></a></td>
+								<td style='background: #FFF'><a href='?page=weekly-schedule.php&amp;edititem=<?php echo $item->id; ?>&amp;schedule=<?php echo $schedule; ?>'><strong><?php echo stripslashes($item->name); ?></strong></a></td>
 								<td style='background: #FFF;text-align:right'><?php echo $item->dayname; ?></td>
 								<td style='background: #FFF;text-align:right'>
 								<?php 
@@ -1646,7 +1646,7 @@ function ws_library($scheduleid = 1, $starttime = 19, $endtime = 22, $timedivisi
 					if ($item->address != "")
 						$output .= "<a target='" . $linktarget . "'href='" . $item->address. "'>";
 						
-					$output .= $item->itemname;
+					$output .= stripslashes($item->itemname);
 										
 					if ($item->address != "")
 						"</a>";
-- 
GitLab