From fd4beeec7331c7ebc37dc12bfe5f74cd78c8e134 Mon Sep 17 00:00:00 2001 From: Brian Harring Date: Mon, 8 Aug 2016 23:41:53 +0000 Subject: [PATCH] Use https:// for jquery script download by default. Google offers SSL for the resource, so we might as well use that as the default to cut off MITM angles. --- dpaste/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpaste/views.py b/dpaste/views.py index e1e6fb0..ef20ad0 100644 --- a/dpaste/views.py +++ b/dpaste/views.py @@ -26,7 +26,7 @@ from .models import ONETIME_LIMIT, Snippet template_globals = { 'site_name': getattr(settings, 'DPASTE_SITE_NAME', 'dpaste.de'), 'jquery_url': getattr(settings, 'DPASTE_JQUERY_URL', - '//ajax.googleapis.com/ajax/libs/jquery/1/jquery.js'), + 'https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js'), } # -----------------------------------------------------------------------------