From 4dc800cf0c6ab5bea3ed70dce4de9852543b79e6 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Sat, 26 Oct 2013 14:50:07 +0300 Subject: [PATCH] Increase the .torrent size limit when a link to torrent is provided. Closes #879. --- src/downloadthread.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/downloadthread.cpp b/src/downloadthread.cpp index 6736fd1bd..032820c47 100644 --- a/src/downloadthread.cpp +++ b/src/downloadthread.cpp @@ -202,16 +202,16 @@ void DownloadThread::checkDownloadSize(qint64 bytesReceived, qint64 bytesTotal) if (!reply) return; if (bytesTotal > 0) { // Total number of bytes is available - if (bytesTotal > 1048576) { - // More than 1MB, this is probably not a torrent file, aborting... + if (bytesTotal > 1048576*10) { + // More than 10MB, this is probably not a torrent file, aborting... reply->abort(); reply->deleteLater(); } else { disconnect(reply, SIGNAL(downloadProgress(qint64,qint64)), this, SLOT(checkDownloadSize(qint64,qint64))); } } else { - if (bytesReceived > 1048576) { - // More than 1MB, this is probably not a torrent file, aborting... + if (bytesReceived > 1048576*10) { + // More than 10MB, this is probably not a torrent file, aborting... reply->abort(); reply->deleteLater(); }