mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2025-04-02 04:51:50 +00:00
Fix regex to support up to 3 digits for a page value (Fix #192)
This commit is contained in:
parent
1a5b47a108
commit
66caae6668
@ -352,7 +352,7 @@ class PullsModel extends \JModelDatabase
|
|||||||
$linkHeader = $linkHeader[0];
|
$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]))
|
if ($matches && isset($matches[0]))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user