Skip to content

Commit

Permalink
ensure the share link uses https
Browse files Browse the repository at this point in the history
  • Loading branch information
lzuba committed Dec 12, 2024
1 parent 6affdce commit 007ecf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/starter.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def handleCreateShareLinkPassword() -> str:
@app.route('/api/createSharelink', methods=['POST'])
def handleCreateShareLink() -> Response:
link = contr.handleCreateShareLink(request.form['mid'], request.form['password'],get_oidc_user_info()['username'])
resp = make_response(render_template("modal.html", title="Sharable link", body=f"{request.host_url}share_password?rid={link}"))
resp = make_response(render_template("modal.html", title="Sharable link", body=f"https://{request.host}/share_password?rid={link}"))
resp.headers['HX-Trigger'] = 'closeModal'
return resp

Expand Down

0 comments on commit 007ecf4

Please sign in to comment.