Avoid circularity

This commit is contained in:
bashrc committed 2021-02-25 18:31:23 +00:00
1 parent 55c6faf20b
commit 307d386cc3
1 file changed
+2 -1
+2 -1
View File
@@ -10374,7 +10374,8 @@ class PubServer(BaseHTTPRequestHandler):
usersInPath = True
# redirect to the welcome screen
if htmlGET and authorized and usersInPath:
if htmlGET and authorized and usersInPath and \
not self.path.endswith('/welcome'):
nickname = self.path.split('/users/')[1]
if '/' in nickname:
nickname = nickname.split('/')[0]