Handle different users path for vcard

main
Bob Mottram 2022-02-16 10:14:29 +00:00
parent 5803c937c4
commit 346d11f77a
1 changed files with 2 additions and 0 deletions

View File

@ -1202,6 +1202,8 @@ class PubServer(BaseHTTPRequestHandler):
return False
if 'application/' in accept_str:
return False
if path.startswith('/@'):
path = path.replace('/@', '/users/', 1)
if not path.startswith('/users/'):
self._400()
return True