phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] [19115] Fix rfc compliant problems (part one) : fix t


From: Caeies
Subject: [Phpgroupware-cvs] [19115] Fix rfc compliant problems (part one) : fix the fold method for wrapping long lines, and change the properties to be passed through it
Date: Wed, 08 Jul 2009 08:49:25 +0000

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)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]