mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-07 08:02:30 -06:00
- Make sure the torrent file is valid before loading it
This commit is contained in:
@@ -158,6 +158,8 @@ public:
|
||||
// Getting torrent file informations
|
||||
try {
|
||||
t = new torrent_info(filePath.toLocal8Bit().data());
|
||||
if(!t->is_valid())
|
||||
throw std::exception();
|
||||
} catch(std::exception&) {
|
||||
qDebug("Caught error loading torrent");
|
||||
if(!from_url.isNull()){
|
||||
|
||||
Reference in New Issue
Block a user