[CalendarServer-changes] [11212] CalDAVClientLibrary/trunk/caldavclientlibrary/protocol/url.py

source_changes at macosforge.org source_changes at macosforge.org
Fri May 17 08:00:33 PDT 2013


Revision: 11212
          http://trac.calendarserver.org//changeset/11212
Author:   cdaboo at apple.com
Date:     2013-05-17 08:00:33 -0700 (Fri, 17 May 2013)
Log Message:
-----------
Fix URL comparison as per ticket #808.

Modified Paths:
--------------
    CalDAVClientLibrary/trunk/caldavclientlibrary/protocol/url.py

Modified: CalDAVClientLibrary/trunk/caldavclientlibrary/protocol/url.py
===================================================================
--- CalDAVClientLibrary/trunk/caldavclientlibrary/protocol/url.py	2013-05-17 14:57:00 UTC (rev 11211)
+++ CalDAVClientLibrary/trunk/caldavclientlibrary/protocol/url.py	2013-05-17 15:00:33 UTC (rev 11212)
@@ -173,6 +173,12 @@
         if comp.server:
             return False
 
+        if not self.path and not comp.path:
+            return True
+
+        if not self.path or not comp.path:
+            return False
+
         # Just compare paths, ignore trailing slash
         return self.path.rstrip("/") == comp.path.rstrip("/")
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130517/88a105c9/attachment.html>


More information about the calendarserver-changes mailing list