mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-04 18:22:26 +00:00
Fix random href fallback
This commit is contained in:
parent
f06af066f9
commit
a5716a7d84
1 changed files with 2 additions and 1 deletions
|
@ -71,7 +71,8 @@ class CollectionPartUpload(CollectionPartGet, CollectionPartCache,
|
||||||
radicale_item.get_etag(uid).strip('"') + suffix]:
|
radicale_item.get_etag(uid).strip('"') + suffix]:
|
||||||
if is_safe_free_href(href):
|
if is_safe_free_href(href):
|
||||||
yield href
|
yield href
|
||||||
yield radicale_item.find_available_uid(is_safe_free_href, suffix)
|
yield radicale_item.find_available_uid(
|
||||||
|
lambda href: not is_safe_free_href(href), suffix)
|
||||||
|
|
||||||
cache_folder = os.path.join(self._filesystem_path,
|
cache_folder = os.path.join(self._filesystem_path,
|
||||||
".Radicale.cache", "item")
|
".Radicale.cache", "item")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue