Skip to content

Commit 57ea0c7

Browse files
authored
Merge pull request #631 from nextcloud/backport/629/stable30
2 parents 0906fb8 + 9de553e commit 57ea0c7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,6 @@ private function getUpdateServerResponse(): array {
536536
CURLOPT_RETURNTRANSFER => 1,
537537
CURLOPT_URL => $updateURL,
538538
CURLOPT_USERAGENT => 'Nextcloud Updater',
539-
CURLOPT_FOLLOWLOCATION => 1,
540-
CURLOPT_MAXREDIRS => 2,
541539
]);
542540

543541
if ($this->getConfigOption('proxy') !== null) {
@@ -598,6 +596,8 @@ public function downloadUpdate(): void {
598596
curl_setopt_array($ch, [
599597
CURLOPT_FILE => $fp,
600598
CURLOPT_USERAGENT => 'Nextcloud Updater',
599+
CURLOPT_FOLLOWLOCATION => 1,
600+
CURLOPT_MAXREDIRS => 2,
601601
]);
602602

603603
if ($this->getConfigOption('proxy') !== null) {

lib/Updater.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,6 @@ private function getUpdateServerResponse(): array {
498498
CURLOPT_RETURNTRANSFER => 1,
499499
CURLOPT_URL => $updateURL,
500500
CURLOPT_USERAGENT => 'Nextcloud Updater',
501-
CURLOPT_FOLLOWLOCATION => 1,
502-
CURLOPT_MAXREDIRS => 2,
503501
]);
504502

505503
if ($this->getConfigOption('proxy') !== null) {
@@ -560,6 +558,8 @@ public function downloadUpdate(): void {
560558
curl_setopt_array($ch, [
561559
CURLOPT_FILE => $fp,
562560
CURLOPT_USERAGENT => 'Nextcloud Updater',
561+
CURLOPT_FOLLOWLOCATION => 1,
562+
CURLOPT_MAXREDIRS => 2,
563563
]);
564564

565565
if ($this->getConfigOption('proxy') !== null) {

updater.phar

0 Bytes
Binary file not shown.

vendor/composer/installed.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
'name' => '__root__',
44
'pretty_version' => 'dev-master',
55
'version' => 'dev-master',
6-
'reference' => '0d7ecb7201963d7adb575991f83f392b8a425a61',
6+
'reference' => '9adb775ee0ca02d832347ddfea2b4c248f2805bc',
77
'type' => 'library',
88
'install_path' => __DIR__ . '/../../',
99
'aliases' => array(),
@@ -13,7 +13,7 @@
1313
'__root__' => array(
1414
'pretty_version' => 'dev-master',
1515
'version' => 'dev-master',
16-
'reference' => '0d7ecb7201963d7adb575991f83f392b8a425a61',
16+
'reference' => '9adb775ee0ca02d832347ddfea2b4c248f2805bc',
1717
'type' => 'library',
1818
'install_path' => __DIR__ . '/../../',
1919
'aliases' => array(),

0 commit comments

Comments
 (0)