[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: infolog/inc class.bolink.inc.php,1.20,1.21
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: infolog/inc class.bolink.inc.php,1.20,1.21 |
Date: |
Tue, 19 Aug 2003 06:29:55 -0400 |
Update of /cvsroot/phpgroupware/infolog/inc
In directory subversions:/tmp/cvs-serv21249
Modified Files:
class.bolink.inc.php
Log Message:
fixed calendar-title, & and " have been displayed as & or "
(cal is transmitting its data with entities and they get coded twice)
Index: class.bolink.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/infolog/inc/class.bolink.inc.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** class.bolink.inc.php 6 Jul 2003 23:40:53 -0000 1.20
--- class.bolink.inc.php 19 Aug 2003 10:29:52 -0000 1.21
***************
*** 796,799 ****
--- 796,810 ----
/*!
+ @function decode_htmlspecialchars
+ @syntax decode_htmlspecialchars( $str )
+ @author ralfbecker
+ @abstract reverse function of htmlspecialchars()
+ */
+ function decode_htmlspecialchars($str)
+ {
+ return
str_replace(array('&','"','<','>'),array('&','"','<','>'),$str);
+ }
+
+ /*!
@function calendar_title
@syntax calendar_title( $id )
***************
*** 819,823 ****
$name =
$GLOBALS['phpgw']->common->show_date($this->bocal->maketime($event['start']) -
$this->bocal->datetime->tz_offset,$format);
! $name .= ': ' . $event['title'];
return $name;
--- 830,834 ----
$name =
$GLOBALS['phpgw']->common->show_date($this->bocal->maketime($event['start']) -
$this->bocal->datetime->tz_offset,$format);
! $name .= ': ' .
$this->decode_htmlspecialchars($event['title']); // cal returns entities
return $name;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: infolog/inc class.bolink.inc.php,1.20,1.21,
Ralf Becker <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: admin/inc class.boaccounts.inc.php, 1.22.2.7.2.3, 1.22.2.7.2.4 class.uiaccounts.inc.php, 1.23.2.9.2.13, 1.23.2.9.2.14
- Next by Date:
[Phpgroupware-cvs] CVS: calendar/inc class.uicalendar.inc.php, 1.66.2.55.2.18, 1.66.2.55.2.19
- Previous by thread:
[Phpgroupware-cvs] CVS: admin/inc class.boaccounts.inc.php, 1.22.2.7.2.3, 1.22.2.7.2.4 class.uiaccounts.inc.php, 1.23.2.9.2.13, 1.23.2.9.2.14
- Next by thread:
[Phpgroupware-cvs] CVS: calendar/inc class.uicalendar.inc.php, 1.66.2.55.2.18, 1.66.2.55.2.19
- Index(es):