main
Bob Mottram 2021-02-17 11:22:34 +00:00
parent 17dc05c72b
commit c9e5f0554f
1 changed files with 4 additions and 2 deletions

View File

@ -12320,11 +12320,13 @@ class PubServer(BaseHTTPRequestHandler):
nickname = None
nicknameStr = path.split('/users/')[1]
if '?' in nicknameStr:
nickname = nicknameStr.split('?')[0]
elif '/' in nicknameStr:
nicknameStr = nicknameStr.split('?')[0]
if '/' in nicknameStr:
nickname = nicknameStr.split('/')[0]
else:
return -1
if self.server.debug:
print('DEBUG: POST nickname ' + nickname)
length = int(headers['Content-Length'])
if length > self.server.maxPostLength:
print('POST size too large')