[CalendarServer-changes] [5858] CalendarServer/trunk/lib-patches/vobject/vobject.icalendar.patch

source_changes at macosforge.org source_changes at macosforge.org
Wed Jul 7 16:08:48 PDT 2010


Revision: 5858
          http://trac.macosforge.org/projects/calendarserver/changeset/5858
Author:   sagen at apple.com
Date:     2010-07-07 16:08:47 -0700 (Wed, 07 Jul 2010)
Log Message:
-----------
Allow colon character to be escaped since this is breaking current clients.  In the near future we'll have the server clean up these illegal escapes rather than reject them.

Modified Paths:
--------------
    CalendarServer/trunk/lib-patches/vobject/vobject.icalendar.patch

Modified: CalendarServer/trunk/lib-patches/vobject/vobject.icalendar.patch
===================================================================
--- CalendarServer/trunk/lib-patches/vobject/vobject.icalendar.patch	2010-07-07 20:36:05 UTC (rev 5857)
+++ CalendarServer/trunk/lib-patches/vobject/vobject.icalendar.patch	2010-07-07 23:08:47 UTC (rev 5858)
@@ -2,7 +2,7 @@
 ===================================================================
 --- vobject/icalendar.py	(revision 219)
 +++ vobject/icalendar.py	(working copy)
-@@ -1622,11 +1622,19 @@
+@@ -1622,11 +1622,15 @@
  
  # DQUOTE included to work around iCal's penchant for backslash escaping it,
  # although it isn't actually supposed to be escaped according to rfc2445 TEXT
@@ -11,11 +11,7 @@
 +# COLON included to work around Address Book's escaping it in vCard data,
 +# despite the fact that it is similarly not supposed to be escaped.
 +
-+# Isn't it a bad idea to be lenient with \" ?
-+if True:
-+    escapableCharList = '\\;,Nn'
-+else:
-+    escapableCharList = '\\;:,Nn"'
++escapableCharList = '\\;:,Nn'
 +
  def stringToTextValues(s, listSeparator=',', charList=None, strict=False):
      """Returns list of strings."""
@@ -24,7 +20,7 @@
      if charList is None:
          charList = escapableCharList
  
-@@ -1675,9 +1683,10 @@
+@@ -1675,9 +1679,10 @@
                  else:
                      current.append(char)
              else:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100707/59203e9b/attachment.html>


More information about the calendarserver-changes mailing list