projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace calls to htmlspecialchars() with sm_encode_html_special_chars().
[squirrelmail.git]
/
plugins
/
calendar
/
calendar.php
diff --git
a/plugins/calendar/calendar.php
b/plugins/calendar/calendar.php
index 956f4b29d8134280195af4825fc9dbebe8c38f22..091250d2d6336ccf0d51906857cb6fb4b9ae3e56 100644
(file)
--- a/
plugins/calendar/calendar.php
+++ b/
plugins/calendar/calendar.php
@@
-3,7
+3,7
@@
/**
* Displays the main calendar page (month view).
*
/**
* Displays the main calendar page (month view).
*
- * @copyright
© 2002-2006
The SquirrelMail Project Team
+ * @copyright
2002-2012
The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
@@
-114,11
+114,11
@@
function drawmonthview() {
$calbar = $calendardata[$cdate][$calfoo['key']];
// FIXME: how to display multiline task
$title = '['. $calfoo['key']. '] ' .
$calbar = $calendardata[$cdate][$calfoo['key']];
// FIXME: how to display multiline task
$title = '['. $calfoo['key']. '] ' .
- str_replace(array("\r","\n"),array(' ',' '),
htmlspecial
chars($calbar['message']));
+ str_replace(array("\r","\n"),array(' ',' '),
sm_encode_html_special_
chars($calbar['message']));
// FIXME: link to nowhere
echo "<a href=\"#\" style=\"text-decoration:none; color: "
.($calbar['priority']==1 ? $color[1] : $color[6])
// FIXME: link to nowhere
echo "<a href=\"#\" style=\"text-decoration:none; color: "
.($calbar['priority']==1 ? $color[1] : $color[6])
- ."\" title=\"$title\">".
htmlspecial
chars($calbar['title'])."</a><br />\n";
+ ."\" title=\"$title\">".
sm_encode_html_special_
chars($calbar['title'])."</a><br />\n";
$i=$i+1;
if($i==2){
break;
$i=$i+1;
if($i==2){
break;
@@
-138,7
+138,7
@@
function drawmonthview() {
* @access private
*/
function endcalendar() {
* @access private
*/
function endcalendar() {
- global $year, $month
, $day, $color
;
+ global $year, $month;
echo html_tag( 'tr' ) ."\n" .
html_tag( 'td', '', 'left', '', 'colspan="7"' ) ."\n" .
echo html_tag( 'tr' ) ."\n" .
html_tag( 'td', '', 'left', '', 'colspan="7"' ) ."\n" .
@@
-169,7
+169,7
@@
if( !isset($day) || $day <= 0){
$todayis = date( 'mdY' );
$calself=basename($PHP_SELF);
$todayis = date( 'mdY' );
$calself=basename($PHP_SELF);
-displayPageHeader($color
, 'None'
);
+displayPageHeader($color);
calendar_header();
readcalendardata();
startcalendar();
calendar_header();
readcalendardata();
startcalendar();
@@
-177,4
+177,4
@@
drawmonthview();
endcalendar();
?>
endcalendar();
?>
-</body></html>
\ No newline at end of file
+</body></html>