From a8e4ec69bf75a368437b6795b8c5fa573a4af9a5 Mon Sep 17 00:00:00 2001 From: Lars Immisch Date: Tue, 22 Sep 2015 13:33:26 +0200 Subject: [PATCH] Fix gravatar URL and one possible redirect loop --- realms/lib/util.py | 2 +- realms/modules/auth/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/realms/lib/util.py b/realms/lib/util.py index e121ada..0bd115d 100644 --- a/realms/lib/util.py +++ b/realms/lib/util.py @@ -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(): diff --git a/realms/modules/auth/views.py b/realms/modules/auth/views.py index 4237cdd..6afdc54 100644 --- a/realms/modules/auth/views.py +++ b/realms/modules/auth/views.py @@ -69,4 +69,4 @@ def settings(): @blueprint.route("/logout") def logout(): User.logout() - return redirect("/") + return redirect(url_for(current_app.config['ROOT_ENDPOINT']))