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
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue