diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-12-06 19:19:00 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-12-06 19:19:00 +0300 |
commit | 95f539758d725ce9a44c7291de95ab50e274a2a7 (patch) | |
tree | 50867dfecb4bf9c0581dedb23f5ad7965e1b2ef6 | |
parent | 668c9f8a94a321f2809936eac438a843493d8f45 (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.php | 2 | ||||
-rw-r--r-- | lib/Updater.php | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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); |