mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-02 06:26:10 -04:00
Stop passing status_url_path to render denied template, to avoid exception
This commit is contained in:
parent
a3df6d6b60
commit
9bb853756a
2 changed files with 4 additions and 12 deletions
|
@ -61,10 +61,7 @@ class ShareModeWeb(SendBaseModeWeb):
|
|||
and self.download_in_progress
|
||||
)
|
||||
if deny_download:
|
||||
r = make_response(
|
||||
render_template("denied.html"),
|
||||
static_url_path=self.web.static_url_path,
|
||||
)
|
||||
r = make_response(render_template("denied.html"))
|
||||
return self.web.add_security_headers(r)
|
||||
|
||||
# If download is allowed to continue, serve download page
|
||||
|
@ -87,11 +84,7 @@ class ShareModeWeb(SendBaseModeWeb):
|
|||
and self.download_in_progress
|
||||
)
|
||||
if deny_download:
|
||||
r = make_response(
|
||||
render_template(
|
||||
"denied.html", static_url_path=self.web.static_url_path
|
||||
)
|
||||
)
|
||||
r = make_response(render_template("denied.html"))
|
||||
return self.web.add_security_headers(r)
|
||||
|
||||
# Prepare some variables to use inside generate() function below
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue