Check for nickname

main
Bob Mottram 2021-02-17 13:29:46 +00:00
parent ac2f09c1a6
commit f3ef2c0c02
1 changed files with 3 additions and 1 deletions

View File

@ -12323,7 +12323,9 @@ class PubServer(BaseHTTPRequestHandler):
nicknameStr = nicknameStr.split('?')[0]
if '/' in nicknameStr:
nickname = nicknameStr.split('/')[0]
else:
if not nickname:
print('WARN: no nickname found when receiving ' + postType +
' path ' + path)
return -1
if self.server.debug:
print('DEBUG: POST nickname ' + nickname)