31
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-05-29 03:50:46 +00:00

Fix regex to support up to 3 digits for a page value (Fix #192)

This commit is contained in:
Michael Babker 2017-05-04 19:45:13 -05:00
parent 1a5b47a108
commit 66caae6668

View File

@ -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]))
{