diff options
author | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-12-22 16:34:48 +0300 |
---|---|---|
committer | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-12-22 16:34:48 +0300 |
commit | 12f907ba9dc4e946b6c9ce17c9c72e193218b80f (patch) | |
tree | 52818e5d61361bf46198ad5a4cb289e3cba2a1b5 | |
parent | ebbb89ed18bc7ebcb9b2fef86c312543a40f845a (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.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |