mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-25 18:52:58 -03: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
1 changed files with 5 additions and 5 deletions
|
@ -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…
Add table
Reference in a new issue