1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

Updater: add minor sanity check

This commit is contained in:
Nekotekina 2021-02-05 23:53:48 +03:00
parent c32fec774f
commit d6dcab443d

View File

@ -209,6 +209,12 @@ bool update_manager::handle_json(bool automatic, bool check_only, const QByteArr
m_expected_hash = latest[os]["checksum"].toString().toStdString();
m_expected_size = latest[os]["size"].toInt();
if (!m_request_url.starts_with("https://github.com/RPCS3/rpcs3"))
{
update_log.fatal("Bad url: %s", m_request_url);
return false;
}
if (check_only)
{
m_downloader->close_progress_dialog();