From 93a01a85cdc46f1dd9b3d4f3b44fdade76c472a5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Thu, 12 Sep 2019 11:29:23 +0200
Subject: [PATCH] Use secure download locations for the snapshot

---
 _includes/download-snapshot.html | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/_includes/download-snapshot.html b/_includes/download-snapshot.html
index cb748d0..6478e1e 100644
--- a/_includes/download-snapshot.html
+++ b/_includes/download-snapshot.html
@@ -25,7 +25,7 @@
         {% assign snapshot_files = (site.static_files | where: "snapshot", "windows-exe" | sort: 'modified_time') | reverse %}
         {% for snapshot in snapshot_files %}
         {% if snapshot.extname == ".exe" %}
-        <div class="download_row" onclick="document.location = 'http://www.dynare.org/snapshot/windows/{{ snapshot.name }}'" onkeypress="document.location = 'http://www.dynare.org/snapshot/windows/{{ snapshot.name }}'">
+        <div class="download_row" onclick="document.location = 'https://www.dynare.org/snapshot/windows/{{ snapshot.name }}'" onkeypress="document.location = 'https://www.dynare.org/snapshot/windows/{{ snapshot.name }}'">
           <div class="download_cell_left"><i class="fas fa-file-download"></i>&nbsp;{{ snapshot.modified_time  | date: "%Y %b %d %R" }}</div>
           <div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div>
         </div>
@@ -38,7 +38,7 @@
         {% assign snapshot_files = (site.static_files | where: "snapshot", "windows-zip" | sort: 'modified_time') | reverse %}
         {% for snapshot in snapshot_files %}
         {% if snapshot.extname == ".zip" %}
-        <div class="download_row" onclick="document.location = 'http://www.dynare.org/snapshot/windows-zip/{{ snapshot.name }}'" onkeypress="document.location = 'http://www.dynare.org/snapshot-zip/windows/{{ snapshot.name }}'">
+        <div class="download_row" onclick="document.location = 'https://www.dynare.org/snapshot/windows-zip/{{ snapshot.name }}'" onkeypress="document.location = 'https://www.dynare.org/snapshot-zip/windows/{{ snapshot.name }}'">
           <div class="download_cell_left"><i class="fas fa-file-download"></i>&nbsp;{{ snapshot.modified_time  | date: "%Y %b %d %R" }}</div>
           <div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div>
         </div>
@@ -61,7 +61,7 @@
       {% assign snapshot_files = (site.static_files | where: "snapshot", "macosx" | sort: 'modified_time') | reverse %}
       {% for snapshot in snapshot_files %}
       {% if snapshot.extname == ".zip" %}
-      <div class="download_row" onclick="document.location = 'http://www.dynare.org/snapshot/macosx/{{ snapshot.name }}'" onkeypress="document.location = 'http://www.dynare.org/snapshot/macosx/{{ snapshot.name }}'">
+      <div class="download_row" onclick="document.location = 'https://www.dynare.org/snapshot/macosx/{{ snapshot.name }}'" onkeypress="document.location = 'https://www.dynare.org/snapshot/macosx/{{ snapshot.name }}'">
         <div class="download_cell_left"><i class="fas fa-file-download"></i>&nbsp;{{ snapshot.modified_time  | date: "%Y %b %d %R" }}</div>
         <div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div>
       </div>
@@ -87,7 +87,7 @@
       {% assign snapshot_files = (site.static_files | where: "snapshot", "source" | sort: 'modified_time') | reverse %}
       {% for snapshot in snapshot_files %}
       {% if snapshot.extname == ".xz" %}
-      <div class="download_row" onclick="document.location = 'http://www.dynare.org/snapshot/source/{{ snapshot.name }}'" onkeypress="document.location = 'http://www.dynare.org/snapshot/source/{{ snapshot.name }}'">
+      <div class="download_row" onclick="document.location = 'https://www.dynare.org/snapshot/source/{{ snapshot.name }}'" onkeypress="document.location = 'https://www.dynare.org/snapshot/source/{{ snapshot.name }}'">
         <div class="download_cell_left"><i class="fas fa-file-download"></i>&nbsp;{{ snapshot.modified_time  | date: "%Y %b %d %R" }}</div>
         <div class="download_cell_right"><a href="#">{{ snapshot.name }}</a></div>
       </div>
-- 
GitLab