diff --git a/www/ebooks/download.php b/www/ebooks/download.php index 59f7dbd6..25104c85 100644 --- a/www/ebooks/download.php +++ b/www/ebooks/download.php @@ -64,10 +64,6 @@ try{ // Increment local download count, expires in 2 weeks $downloadCount++; setcookie('download-count', (string)$downloadCount, ['expires' => strtotime('+2 week'), 'path' => '/', 'domain' => SITE_DOMAIN, 'secure' => true, 'httponly' => false, 'samesite' => 'Lax']); - - if(!$showThankYouPage){ - exit(); - } } catch(Exceptions\InvalidFileException | Exceptions\EbookNotFoundException){ Template::Emit404();