From 9f9fba63d976f45f807aadbfd2d0a96aced315db Mon Sep 17 00:00:00 2001 From: fowr <89118232+perdedora@users.noreply.github.com> Date: Wed, 2 Apr 2025 09:07:56 -0300 Subject: [PATCH] HttpDriver.php: fix download max size logic --- inc/Data/Driver/HttpDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/Data/Driver/HttpDriver.php b/inc/Data/Driver/HttpDriver.php index 2e379f27..ff78ec9d 100644 --- a/inc/Data/Driver/HttpDriver.php +++ b/inc/Data/Driver/HttpDriver.php @@ -115,7 +115,7 @@ class HttpDriver { $opt = (\PHP_MAJOR_VERSION >= 8 && \PHP_MINOR_VERSION >= 2) ? \CURLOPT_XFERINFOFUNCTION : \CURLOPT_PROGRESSFUNCTION; \curl_setopt_array($this->inner, [ \CURLOPT_NOPROGRESS => false, - $opt => fn($res, $next_dl, $dl, $next_up, $up) => (int)($dl <= $this->max_file_size), + $opt => fn($res, $next_dl, $dl, $next_up, $up) => (int)($dl > $this->max_file_size), \CURLOPT_FAILONERROR => true, \CURLOPT_FOLLOWLOCATION => false, \CURLOPT_FILE => $fd,