Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,8 @@ private function getUpdateServerResponse(): array {
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => $updateURL,
CURLOPT_USERAGENT => 'Nextcloud Updater',
CURLOPT_FOLLOWLOCATION => 1,
CURLOPT_MAXREDIRS => 2,
]);

if ($this->getConfigOption('proxy') !== null) {
Expand Down Expand Up @@ -1006,7 +1008,7 @@ private function moveWithExclusions(string $dataLocation, array $excludedElement
throw new \Exception('Could not mkdir ' . $this->nextcloudDir . '/' . dirname($fileName));
}
}
$state = rename($path, $this->nextcloudDir . '/' . $fileName);
$state = @rename($path, $this->nextcloudDir . '/' . $fileName);
if ($state === false) {
throw new \Exception(
sprintf(
Expand Down
Binary file modified updater.phar
Binary file not shown.