Revision: 19115
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=19115
Author: Caeies
Date: 2009-07-08 08:49:25 +0000 (Wed, 08 Jul 2009)
Log Message:
-----------
Fix rfc compliant problems (part one) : fix the fold method for wrapping long
lines, and change the properties to be passed through it
Modified Paths:
--------------
branches/Version-0_9_16-branch/calendar/inc/class.boicalendar.inc.php
Modified: branches/Version-0_9_16-branch/calendar/inc/class.boicalendar.inc.php
===================================================================
--- branches/Version-0_9_16-branch/calendar/inc/class.boicalendar.inc.php
2009-04-21 17:29:45 UTC (rev 19114)
+++ branches/Version-0_9_16-branch/calendar/inc/class.boicalendar.inc.php
2009-07-08 08:49:25 UTC (rev 19115)
@@ -1138,7 +1138,7 @@
'value' => Array(
'type' => 'value',
'quoted' => False,
- 'to_text' => False,
+ 'to_text' => True,
'properties' => Array(
'calscale' => True,
'prodid' => True,
@@ -1294,7 +1294,8 @@
function fold($str)
{
- return $this->chunk_split==True ?
chunk_split($str,FOLD_LENGTH,"\r\n") : $str."\r\n";
+ //Caeies : fix the last space problem for the chunk to be fully
rfc compliant, with a rtrim on ' '
+ return $this->chunk_split == True ?
rtrim(chunk_split($str,FOLD_LENGTH,"\r\n ") , ' ') : $str . "\r\n";
}
function strip_quotes($str)
_______________________________________________
phpGroupWare-cvs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/phpgroupware-cvs