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

github.com/nextcloud/client_updater_server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Ottens <kevin.ottens@nextcloud.com>2020-12-22 16:34:48 +0300
committerKevin Ottens <kevin.ottens@nextcloud.com>2020-12-22 16:34:48 +0300
commit12f907ba9dc4e946b6c9ce17c9c72e193218b80f (patch)
tree52818e5d61361bf46198ad5a4cb289e3cba2a1b5
parentebbb89ed18bc7ebcb9b2fef86c312543a40f845a (diff)
Add support for buildArch and currentArch query parameters
Starting with 3.1.0 the client submit that information in the query. Let's expose it to the config. If it is not provided we assume x86_64 since it's likely the most common arch nowadays. Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
-rw-r--r--index.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.php b/index.php
index ffd93cc..fa568e6 100644
--- a/index.php
+++ b/index.php
@@ -81,6 +81,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' &&
// Read parameters
$oem = isset($_GET['oem']) ? (string)$_GET['oem'] : null;
$platform = isset($_GET['platform']) ? (string)$_GET['platform'] : null;
+$buildArch = isset($_GET['buildArch']) ? (string)$_GET['buildArch'] : "x86_64";
+$currentArch = isset($_GET['currentArch']) ? (string)$_GET['currentArch'] : "x86_64";
$version = isset($_GET['version']) ? (string)$_GET['version'] : null;
$isSparkle = isset($_GET['sparkle']) ? true : false;
$updateSegment = isset($_GET['updatesegment']) ? (int)$_GET['updatesegment'] : -1;