update OC.DE GPX URI
authormirabilos <m@mirbsd.org>
Sat, 8 Jun 2019 15:28:46 +0000 (17:28 +0200)
committermirabilos <mirabilos@evolvis.org>
Sat, 8 Jun 2019 15:28:46 +0000 (17:28 +0200)
gpx.cgi
gpx.sh

diff --git a/gpx.cgi b/gpx.cgi
index 1f7a44d..834909f 100755 (executable)
--- a/gpx.cgi
+++ b/gpx.cgi
@@ -118,7 +118,7 @@ if ($query ne "") {
 }
 
 if ($found == 3) {
-       &redirect("http://www.opencaching.de/search.php?searchbywp=1&showresult=1&output=GPX&f_inactive=0&f_ignored=0&wp=$output") if
+       &redirect("https://www.opencaching.de/search.php?searchbywp=1&showresult=1&output=GPX&f_inactive=0&f_ignored=0&wp=$output") if
            ($output =~ m!^OC!);
 
        # fall through
diff --git a/gpx.sh b/gpx.sh
index 963ec04..cccade6 100755 (executable)
--- a/gpx.sh
+++ b/gpx.sh
@@ -371,7 +371,7 @@ case $wp {
 
 # redirections
 if [[ $wptype = oc ]]; then
-       i=$("${fetch[@]}" "http://www.opencaching.de/search.php?searchbywp=1&showresult=1&output=GPX&f_inactive=0&f_ignored=0&wp=$wp" \
+       i=$("${fetch[@]}" "https://www.opencaching.de/search.php?searchbywp=1&showresult=1&output=GPX&f_inactive=0&f_ignored=0&wp=$wp" \
            2>/dev/null)
        [[ $i = *'<wpt'* ]] || exit 1
        print -r -- "$i"