mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-25 15:47:25 +08:00
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.
This commit is contained in:
parent
454b26c672
commit
ebdf2acd03
@ -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 = (cache_path / (vendor.id + ".idx")).string();
|
||||||
const std::string idx_path_temp = idx_path + "-update";
|
const std::string idx_path_temp = idx_path + "-update";
|
||||||
//check if idx_url is leading to our site
|
//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;
|
BOOST_LOG_TRIVIAL(warning) << "unsafe url path for vendor \"" << vendor.name << "\" rejected: " << idx_url;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user