Fix gravatar URL and one possible redirect loop
This commit is contained in:
parent
087ee0be15
commit
a8e4ec69bf
|
@ -119,7 +119,7 @@ def filename_to_cname(filename):
|
|||
|
||||
|
||||
def gravatar_url(email):
|
||||
return "//www.gravatar.com/avatar/" + hashlib.md5(email).hexdigest()
|
||||
return "https://www.gravatar.com/avatar/" + hashlib.md5(email).hexdigest()
|
||||
|
||||
|
||||
def in_virtualenv():
|
||||
|
|
|
@ -69,4 +69,4 @@ def settings():
|
|||
@blueprint.route("/logout")
|
||||
def logout():
|
||||
User.logout()
|
||||
return redirect("/")
|
||||
return redirect(url_for(current_app.config['ROOT_ENDPOINT']))
|
||||
|
|
Loading…
Reference in a new issue