steffen: server/kolab-resource-handlers/kolab-resource-handlers/fbview/fbview/framework/iCalendar iCalendar.php, 1.4, 1.5

cvs at intevation.de cvs at intevation.de
Wed Nov 17 13:51:41 CET 2004


Author: steffen

Update of /kolabrepository/server/kolab-resource-handlers/kolab-resource-handlers/fbview/fbview/framework/iCalendar
In directory doto:/tmp/cvs-serv26137/kolab-resource-handlers/fbview/fbview/framework/iCalendar

Modified Files:
	iCalendar.php 
Log Message:
fix for Issue529 (iCal quoting)

Index: iCalendar.php
===================================================================
RCS file: /kolabrepository/server/kolab-resource-handlers/kolab-resource-handlers/fbview/fbview/framework/iCalendar/iCalendar.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- iCalendar.php	16 Nov 2004 01:45:24 -0000	1.4
+++ iCalendar.php	17 Nov 2004 12:51:39 -0000	1.5
@@ -309,7 +309,9 @@
 		case 'SUMMARY':
 		case 'LOCATION':
                     $value = preg_replace('/\\\\,/', ',', $value);
+                    $value = preg_replace('/\\\\;/', ';', $value);
                     $value = preg_replace('/\\\\n/', $this->_newline, $value);
+                    $value = preg_replace('/\\\\N/', $this->_newline, $value);
                     $value = preg_replace('/\\\\\\\\/', '\\\\', $value);
                     $this->setAttribute($tag, $value, $params);
                     break;
@@ -544,6 +546,10 @@
             case 'EXRULE':
             case 'RRULE':
             }
+	    $value = preg_replace('/\\\\/', '\\\\\\\\', $value);
+	    $value = preg_replace('/,/', '\\,', $value);
+	    $value = preg_replace('/;/', '\\;', $value);
+	    $value = preg_replace('/'.$this->_newline.'/', '\\n', $value);
 
             $attr_string = "$name$params_str:$value";
             $result .= $this->_foldLine($attr_string) . $this->_newline;





More information about the commits mailing list