Parse nickname

main
Bob Mottram 2020-02-27 20:37:42 +00:00
parent 867be4d249
commit 971257b047
1 changed files with 26 additions and 25 deletions

View File

@ -1005,7 +1005,8 @@ class PubServer(BaseHTTPRequestHandler):
if self.path.startswith('/blog/') and self.path.endswith('/rss.xml'):
nickname=self.path.split('/blog/')[1]
if '/' not in nickname:
if '/' in nickname:
nickname=nickname.split('/')[0]
if not nickname.startswith('rss.'):
if os.path.isdir(self.server.baseDir+ \
'/accounts/'+nickname+ \