mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 03:37:28 -03:00
Stop passing status_url_path to render denied template, to avoid exception
This commit is contained in:
parent
e092c50b42
commit
c949a731bb
2 changed files with 4 additions and 12 deletions
|
@ -5,7 +5,6 @@
|
|||
<title>OnionShare</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="{{ static_url_path }}/img/favicon.ico" rel="icon" type="image/x-icon" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -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…
Reference in a new issue