Fix gravatar URL and one possible redirect loop

This commit is contained in:
Lars Immisch 2015-09-22 13:33:26 +02:00
parent 087ee0be15
commit a8e4ec69bf
2 changed files with 2 additions and 2 deletions

View file

@ -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():

View file

@ -69,4 +69,4 @@ def settings():
@blueprint.route("/logout")
def logout():
User.logout()
return redirect("/")
return redirect(url_for(current_app.config['ROOT_ENDPOINT']))