From 66caae6668bcf80c47a3d2448638196b95f95467 Mon Sep 17 00:00:00 2001 From: Michael Babker Date: Thu, 4 May 2017 19:45:13 -0500 Subject: [PATCH] Fix regex to support up to 3 digits for a page value (Fix #192) --- .../components/com_patchtester/PatchTester/Model/PullsModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php b/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php index cf405c6..85a0928 100644 --- a/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php +++ b/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php @@ -352,7 +352,7 @@ class PullsModel extends \JModelDatabase $linkHeader = $linkHeader[0]; } - preg_match('/(\?page=[0-9]&per_page=' . $batchSize . '+>; rel=\"last\")/', $linkHeader, $matches); + preg_match('/(\?page=[0-9]{1,3}&per_page=' . $batchSize . '+>; rel=\"last\")/', $linkHeader, $matches); if ($matches && isset($matches[0])) {