From a789b252604314e95eb1310531c9bd5ccacb7949 Mon Sep 17 00:00:00 2001
From: Bradley Taylor <hello@brad-taylor.co.uk>
Date: Sat, 26 Mar 2022 22:08:18 +0000
Subject: [PATCH] Link to Google Maps over HTTPs

---
 templates/CRM/Contact/Form/Task/Map/Google.tpl         | 2 +-
 templates/CRM/Contact/Form/Task/Map/OpenStreetMaps.tpl | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/CRM/Contact/Form/Task/Map/Google.tpl b/templates/CRM/Contact/Form/Task/Map/Google.tpl
index 0bf7ce20ff17..13abb925dbe2 100644
--- a/templates/CRM/Contact/Form/Task/Map/Google.tpl
+++ b/templates/CRM/Contact/Form/Task/Map/Google.tpl
@@ -89,7 +89,7 @@
     function gpopUp() {
   var from   = document.getElementById('from').value;
   var to     = document.getElementById('to').value;
-  var URL    = "http://maps.google.com/maps?saddr=" + from + "&daddr=" + to;
+  var URL    = "https://maps.google.com/maps?saddr=" + from + "&daddr=" + to;
   day = new Date();
   id  = day.getTime();
   eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=780,height=640,left = 202,top = 100');");
diff --git a/templates/CRM/Contact/Form/Task/Map/OpenStreetMaps.tpl b/templates/CRM/Contact/Form/Task/Map/OpenStreetMaps.tpl
index d2fed321438d..d29e018482d2 100644
--- a/templates/CRM/Contact/Form/Task/Map/OpenStreetMaps.tpl
+++ b/templates/CRM/Contact/Form/Task/Map/OpenStreetMaps.tpl
@@ -163,7 +163,7 @@
     function gpopUp() {
         var from   = document.getElementById('from').value;
         var to     = document.getElementById('to').value;
-        var URL    = "http://maps.google.com/maps?saddr=" + from + "&daddr=" + to;
+        var URL    = "https://maps.google.com/maps?saddr=" + from + "&daddr=" + to;
         day = new Date();
         id  = day.getTime();
         eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=780,height=640,left = 202,top = 100');");