From 8d0fc54e4de350712e2edb320b2795892617c1f8 Mon Sep 17 00:00:00 2001 From: Bockiii Date: Tue, 19 Oct 2021 05:23:38 +0200 Subject: [PATCH] [FSecureBlogBridge] Limit number of returned items (#2300) --- bridges/FSecureBlogBridge.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bridges/FSecureBlogBridge.php b/bridges/FSecureBlogBridge.php index 47910960..0ba5e22f 100644 --- a/bridges/FSecureBlogBridge.php +++ b/bridges/FSecureBlogBridge.php @@ -60,6 +60,10 @@ class FSecureBlogBridge extends BridgeAbstract { private function collectCategory($category) { $url = $this->getURI() . "/category/$category/"; while ($url) { + //Limit total amount of requests + if(count($this->items) >= 20) { + break; + } $url = $this->collectListing($url); } }