forked from indymedia/epicyon
Authorized default to inbox
parent
fdb26967b3
commit
204c9905c4
|
@ -613,6 +613,9 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
tokenStr=self.headers['Cookie'].split('=',1)[1]
|
||||
if self.server.tokensLookup.get(tokenStr):
|
||||
nickname=self.server.tokensLookup[tokenStr]
|
||||
# default to the inbox of the person
|
||||
if self.path=='/':
|
||||
self.path='/users/'+nickname+'/inbox'
|
||||
# check that the path contains the same nickname as the cookie
|
||||
# otherwise it would be possible to be authorized to use
|
||||
# an account you don't own
|
||||
|
|
Loading…
Reference in New Issue