Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/updater.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-12-06 19:19:00 +0300
committerMorris Jobke <hey@morrisjobke.de>2016-12-06 19:19:00 +0300
commit95f539758d725ce9a44c7291de95ab50e274a2a7 (patch)
tree50867dfecb4bf9c0581dedb23f5ad7965e1b2ef6
parent668c9f8a94a321f2809936eac438a843493d8f45 (diff)
Adjust updater URL to match the one of the server
* ref #53 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
-rw-r--r--index.php2
-rw-r--r--lib/Updater.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index 93037a2..fe6750e 100644
--- a/index.php
+++ b/index.php
@@ -500,7 +500,7 @@ class Updater {
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_RETURNTRANSFER => 1,
- CURLOPT_URL => $updaterServer . '?version='. str_replace('.', 'x', $this->getConfigOption('version')) .'xxx'.$releaseChannel.'xx'.urlencode($this->buildTime),
+ CURLOPT_URL => $updaterServer . '?version='. str_replace('.', 'x', $this->getConfigOption('version')) .'xxx'.$releaseChannel.'xx'.urlencode($this->buildTime).'x'.PHP_MAJOR_VERSION.'x'.PHP_MINOR_VERSION.'x'.PHP_RELEASE_VERSION,
CURLOPT_USERAGENT => 'Nextcloud Updater',
]);
$response = curl_exec($curl);
diff --git a/lib/Updater.php b/lib/Updater.php
index 17d5f23..14b9d3f 100644
--- a/lib/Updater.php
+++ b/lib/Updater.php
@@ -385,7 +385,7 @@ class Updater {
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_RETURNTRANSFER => 1,
- CURLOPT_URL => $updaterServer . '?version='. str_replace('.', 'x', $this->getConfigOption('version')) .'xxx'.$releaseChannel.'xx'.urlencode($this->buildTime),
+ CURLOPT_URL => $updaterServer . '?version='. str_replace('.', 'x', $this->getConfigOption('version')) .'xxx'.$releaseChannel.'xx'.urlencode($this->buildTime).'x'.PHP_MAJOR_VERSION.'x'.PHP_MINOR_VERSION.'x'.PHP_RELEASE_VERSION,
CURLOPT_USERAGENT => 'Nextcloud Updater',
]);
$response = curl_exec($curl);