From ebdf2acd035b97673f96e73ee6b8e8614e2e2285 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Sat, 24 Oct 2020 16:35:34 +0200 Subject: [PATCH] Follow-up to Use https in config update URLs http://files.prusa3d.com/* always redirects to HTTPS so use https scheme directly. The pull request broke updates to those who installed configs with http://, not https:// prefix. --- src/slic3r/Utils/PresetUpdater.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/Utils/PresetUpdater.cpp b/src/slic3r/Utils/PresetUpdater.cpp index e50bbb7fb4..10de8b0efe 100644 --- a/src/slic3r/Utils/PresetUpdater.cpp +++ b/src/slic3r/Utils/PresetUpdater.cpp @@ -309,7 +309,8 @@ void PresetUpdater::priv::sync_config(const VendorMap vendors) const std::string idx_path = (cache_path / (vendor.id + ".idx")).string(); const std::string idx_path_temp = idx_path + "-update"; //check if idx_url is leading to our site - if (! boost::starts_with(idx_url, "https://files.prusa3d.com/wp-content/uploads/repository/")) + if (! boost::starts_with(idx_url, "http://files.prusa3d.com/wp-content/uploads/repository/") && + ! boost::starts_with(idx_url, "https://files.prusa3d.com/wp-content/uploads/repository/")) { BOOST_LOG_TRIVIAL(warning) << "unsafe url path for vendor \"" << vendor.name << "\" rejected: " << idx_url; continue;