merge-requests/30/head
Bob Mottram 2024-08-14 10:22:18 +01:00
parent 9b88e75da1
commit b67c5b56bd
1 changed files with 2 additions and 3 deletions

View File

@ -37,9 +37,8 @@ def show_vcard(self, base_dir: str, path: str, calling_domain: str,
'application/vcard+xml' 'application/vcard+xml'
) )
if not string_contains(accept_str, vcard_mime_types): if not string_contains(accept_str, vcard_mime_types):
if '.vcf' in path: print('WARN: vcard is not of an expected mime type: ' +
print('WARN: vcard is not of an expected mime type: ' + accept_str + ' ' + path)
accept_str + ' ' + path)
return False return False
if path.startswith('/@'): if path.startswith('/@'):
if '/@/' not in path: if '/@/' not in path: