mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-03 03:02:13 +00:00
Don't allow access to system actors
This commit is contained in:
1 parent
3c8b6e0a9a
commit
bbd27656d2
1 file changed
+5
@@ -8288,6 +8288,11 @@ class PubServer(BaseHTTPRequestHandler):
|
||||
return False
|
||||
|
||||
def do_GET(self):
|
||||
# don't allow access to system actors
|
||||
if self.path == '/users/news' or self.path == '/users/inbox':
|
||||
self._400()
|
||||
return
|
||||
|
||||
callingDomain = self.server.domainFull
|
||||
if self.headers.get('Host'):
|
||||
callingDomain = self.headers['Host']
|
||||
|
||||
Reference in new issue
Block a user