mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-29 01:06:16 -05:00
Fix bug where ReceiveModeRequest was not recognizing an upload request if the POST included a slug when receive_public_mode == True
This commit is contained in:
parent
db7d5a6552
commit
caf87b8d96
@ -692,12 +692,12 @@ class ReceiveModeRequest(Request):
|
||||
# Is this a valid upload request?
|
||||
self.upload_request = False
|
||||
if self.method == 'POST':
|
||||
if self.web.common.settings.get('receive_public_mode'):
|
||||
if self.path == '/upload':
|
||||
self.upload_request = True
|
||||
if self.path == '/{}/upload'.format(self.web.slug):
|
||||
self.upload_request = True
|
||||
else:
|
||||
if self.path == '/{}/upload'.format(self.web.slug):
|
||||
self.upload_request = True
|
||||
if self.web.common.settings.get('receive_public_mode'):
|
||||
if self.path == '/upload':
|
||||
self.upload_request = True
|
||||
|
||||
if self.upload_request:
|
||||
# A dictionary that maps filenames to the bytes uploaded so far
|
||||
|
Loading…
Reference in New Issue
Block a user