sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit 857080314ce717ce18c12106947456e7e12958b9
parent 3fb953bbf0f299efb21b08ce2a4212a89681c781
Author: Slack Coder <slackcoder@server.ky>
Date:   Thu, 20 Feb 2025 12:34:00 -0500

Enable HTTPS certificate checking

Expect the user wants to properly use HTTPS if he has defined an HTTPS
repository.

Diffstat:
MChangeLog.md | 5+++++
MSBO-Lib/lib/SBO/Lib/Download.pm | 2+-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog.md b/ChangeLog.md @@ -9,6 +9,11 @@ All notable changes to this project will be documented in this file. - Download's are retried from a third party on failure. Allow the user to configure the third party source or disable this feature. +### Security + + - Check SSL certificates when downloading. Oddly, this was previously + disabled with '--no-check-certificate'. + ## [2.8.0] - 2025-01-28 ### Added diff --git a/SBO-Lib/lib/SBO/Lib/Download.pm b/SBO-Lib/lib/SBO/Lib/Download.pm @@ -172,7 +172,7 @@ sub get_distfile { for my $link (@links) { unlink $filename if -f $filename; - if (system('wget', '--no-check-certificate', '--tries=5', $link) != 0) { + if (system('wget', '--tries=5', $link) != 0) { if (not %$fail) { # The failure from the first source is apparently what is important. $fail = {msg => "Unable to wget $link.\n", err => _ERR_DOWNLOAD};