Jelajahi Sumber

Remove faulty check

This should have been (to_path.strip("/")+"/").startswith(path.strip("/")+"/").
But it's not required as we don't support moving collections.
Unrud 9 tahun lalu
induk
melakukan
89ac2fb397
1 mengubah file dengan 0 tambahan dan 2 penghapusan
  1. 0 2
      radicale/__init__.py

+ 0 - 2
radicale/__init__.py

@@ -473,8 +473,6 @@ class Application:
         to_path = storage.sanitize_path(to_url.path)
         if not self._access(user, to_path, "w"):
             return NOT_ALLOWED
-        if to_path.strip("/").startswith(path.strip("/")):
-            return client.CONFLICT, {}, None
 
         with self._lock_collection("w", user):
             item = next(self.Collection.discover(path), None)