Fix bday conversion hrefs for vCard filenames ending in v/c/f
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user