mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-13 16:29:31 -05:00
Update receive_mode.py
This commit is contained in:
parent
020e9a6a5a
commit
986a9a09a9
@ -82,16 +82,13 @@ class ReceiveModeWeb:
|
|||||||
)
|
)
|
||||||
|
|
||||||
self.web.add_request(self.web.REQUEST_LOAD, request.path)
|
self.web.add_request(self.web.REQUEST_LOAD, request.path)
|
||||||
r = make_response(
|
return render_template(
|
||||||
render_template(
|
|
||||||
"receive.html",
|
"receive.html",
|
||||||
static_url_path=self.web.static_url_path,
|
static_url_path=self.web.static_url_path,
|
||||||
disable_text=self.web.settings.get("receive", "disable_text"),
|
disable_text=self.web.settings.get("receive", "disable_text"),
|
||||||
disable_files=self.web.settings.get("receive", "disable_files"),
|
disable_files=self.web.settings.get("receive", "disable_files"),
|
||||||
title=self.web.settings.get("general", "title"),
|
title=self.web.settings.get("general", "title")
|
||||||
)
|
)
|
||||||
)
|
|
||||||
return self.web.add_security_headers(r)
|
|
||||||
|
|
||||||
@self.web.app.route("/upload", methods=["POST"])
|
@self.web.app.route("/upload", methods=["POST"])
|
||||||
def upload(ajax=False):
|
def upload(ajax=False):
|
||||||
@ -218,12 +215,11 @@ class ReceiveModeWeb:
|
|||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
# It was the last upload and the timer ran out
|
# It was the last upload and the timer ran out
|
||||||
r = make_response(
|
return make_response(
|
||||||
render_template("thankyou.html"),
|
render_template("thankyou.html"),
|
||||||
static_url_path=self.web.static_url_path,
|
static_url_path=self.web.static_url_path,
|
||||||
title=self.web.settings.get("general", "title"),
|
title=self.web.settings.get("general", "title"),
|
||||||
)
|
)
|
||||||
return self.web.add_security_headers(r)
|
|
||||||
|
|
||||||
@self.web.app.route("/upload-ajax", methods=["POST"])
|
@self.web.app.route("/upload-ajax", methods=["POST"])
|
||||||
def upload_ajax_public():
|
def upload_ajax_public():
|
||||||
|
Loading…
Reference in New Issue
Block a user