|
|
@ -447,12 +447,12 @@ class GitLabDriver extends VcsDriver
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected function getNextPage()
|
|
|
|
private function getNextPage()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$headers = $this->remoteFilesystem->getLastHeaders();
|
|
|
|
$headers = $this->remoteFilesystem->getLastHeaders();
|
|
|
|
foreach ($headers as $header) {
|
|
|
|
foreach ($headers as $header) {
|
|
|
|
if (substr($header, 0, 5) === 'Link:') {
|
|
|
|
if (preg_match('{^link:\s*(.+?)\s*$}i', $header, $match)) {
|
|
|
|
$links = explode(',', substr($header, 5));
|
|
|
|
$links = explode(',', $match[1]);
|
|
|
|
foreach ($links as $link) {
|
|
|
|
foreach ($links as $link) {
|
|
|
|
if (preg_match('{<(.+?)>; *rel="next"}', $link, $match)) {
|
|
|
|
if (preg_match('{<(.+?)>; *rel="next"}', $link, $match)) {
|
|
|
|
return $match[1];
|
|
|
|
return $match[1];
|
|
|
|