From 69933000d03f47cb9c5b064ffd1b6ff3a22f252b Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Tue, 21 Jul 2015 11:31:07 +0000 Subject: [PATCH] Fixed 2 instances of missing protocol specifier in URLs, pointed out by Lars Eggert. - Legacy-Id: 9844 --- ietf/doc/templatetags/ietf_filters.py | 2 +- ietf/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ietf/doc/templatetags/ietf_filters.py b/ietf/doc/templatetags/ietf_filters.py index aedec63a0..ae3a01376 100644 --- a/ietf/doc/templatetags/ietf_filters.py +++ b/ietf/doc/templatetags/ietf_filters.py @@ -228,7 +228,7 @@ def rfclink(string): URL for that RFC. """ string = str(string); - return "//tools.ietf.org/html/rfc" + string; + return "https://tools.ietf.org/html/rfc" + string; @register.filter(name='urlize_ietf_docs', is_safe=True, needs_autoescape=True) def urlize_ietf_docs(string, autoescape=None): diff --git a/ietf/settings.py b/ietf/settings.py index aead2c753..5b138e7f6 100644 --- a/ietf/settings.py +++ b/ietf/settings.py @@ -89,7 +89,7 @@ USE_I18N = False USE_TZ = False -MEDIA_URL = '//www.ietf.org/' +MEDIA_URL = 'https://www.ietf.org/' STATIC_URL = "/" STATIC_ROOT = os.path.abspath(BASE_DIR + "/../static/")