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.
This commit is contained in:
Brian Harring 2016-08-08 23:41:53 +00:00 committed by Brian Harring
parent f76292da69
commit fd4beeec73

View file

@ -26,7 +26,7 @@ from .models import ONETIME_LIMIT, Snippet
template_globals = { template_globals = {
'site_name': getattr(settings, 'DPASTE_SITE_NAME', 'dpaste.de'), 'site_name': getattr(settings, 'DPASTE_SITE_NAME', 'dpaste.de'),
'jquery_url': getattr(settings, 'DPASTE_JQUERY_URL', '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'),
} }
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------