diff --git a/radicale/app/propfind.py b/radicale/app/propfind.py index f366f956..4ba26020 100644 --- a/radicale/app/propfind.py +++ b/radicale/app/propfind.py @@ -159,7 +159,7 @@ def xml_propfind_response( if uri.startswith(share['PathMapped']): uri = str(share['PathOrToken']) + uri.removeprefix(share['PathMapped']) if share_bday_automap and uri.endswith(".vcf"): - uri = uri.rstrip(".vcf") + ".ics" + uri = uri.removesuffix(".vcf") + ".ics" href.text = xmlutils.make_href(base_prefix, uri) response.append(href) diff --git a/radicale/item/__init__.py b/radicale/item/__init__.py index edbe008d..a3fea54f 100644 --- a/radicale/item/__init__.py +++ b/radicale/item/__init__.py @@ -592,7 +592,7 @@ class Item: href = self.href if href is not None: - href = href.rstrip(".vcf") + ".ics" + href = href.removesuffix(".vcf") + ".ics" etag = self.etag # replace 14 leading chars of etag "" by special format bda0YYYYMMDD00