mirror of https://gitlab.com/bashrc2/epicyon
Fix condition
parent
87c274dd30
commit
12148a48c6
|
@ -9434,9 +9434,12 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'permitted directory',
|
'permitted directory',
|
||||||
'login shown done')
|
'login shown done')
|
||||||
|
|
||||||
if htmlGET and '/users/' in self.path and \
|
if htmlGET and self.path.startswith('/users/') and \
|
||||||
self.path.endswith('/newswiremobile'):
|
self.path.endswith('/newswiremobile'):
|
||||||
if (authorized or (not authorized and '/users/news/' in self.path)):
|
if (authorized or
|
||||||
|
(not authorized and
|
||||||
|
self.path.startswith('/users/news/') and
|
||||||
|
self.server.newsInstance)):
|
||||||
nickname = getNicknameFromActor(self.path)
|
nickname = getNicknameFromActor(self.path)
|
||||||
if not nickname:
|
if not nickname:
|
||||||
self._404()
|
self._404()
|
||||||
|
|
Loading…
Reference in New Issue