sharing/bday: fix backmapping of suffix
This commit is contained in:
@@ -158,7 +158,7 @@ def xml_propfind_response(
|
|||||||
# backmap
|
# backmap
|
||||||
if uri.startswith(share['PathMapped']):
|
if uri.startswith(share['PathMapped']):
|
||||||
uri = str(share['PathOrToken']) + uri.removeprefix(share['PathMapped'])
|
uri = str(share['PathOrToken']) + uri.removeprefix(share['PathMapped'])
|
||||||
if share_bday_automap and not uri.endswith("/"):
|
if share_bday_automap and uri.endswith(".vcf"):
|
||||||
uri = uri.rstrip(".vcf") + ".ics"
|
uri = uri.rstrip(".vcf") + ".ics"
|
||||||
|
|
||||||
href.text = xmlutils.make_href(base_prefix, uri)
|
href.text = xmlutils.make_href(base_prefix, uri)
|
||||||
|
|||||||
Reference in New Issue
Block a user