From b9b5b6092f35eb67bc20d0f860d5a91d25e78140 Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Thu, 12 Nov 2020 10:30:12 +0100 Subject: [PATCH] Only treat pages > 1 as 404, if they don't exist --- www/onions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/onions.php b/www/onions.php index cb60af9..6df5442 100644 --- a/www/onions.php +++ b/www/onions.php @@ -102,7 +102,7 @@ function send_html(){ $pages=ceil($category_count[$cat]/PER_PAGE); } } - if($_REQUEST['pg']>$pages){ + if($_REQUEST['pg'] > $pages && $_REQUEST['pg'] > 1){ http_response_code(404); } echo '';