Skip to content

Commit 7b370f5

Browse files
Rellonilsding
andauthored
Update index.php
Co-authored-by: Jyrki Gadinger <[email protected]> Signed-off-by: Rello <[email protected]>
1 parent 99b0942 commit 7b370f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
$isSparkle = isset($_GET['sparkle']) ? true : false;
7676
$isFileProvider = isset($_GET['fileprovider']) ? true : false;
7777
// due to a bug in an old version, the channels were translated. we need to catch them again
78-
$channel = isset($_GET['channel']) && in_array($_GET['channel'], $allowedChannels, true)
79-
? $_GET['channel']
78+
$channel = isset($_GET['channel']) && in_array((string)$_GET['channel'], $allowedChannels, true)
79+
? (string)$_GET['channel']
8080
: 'stable';
8181

8282
$osRelease = isset($_GET['osRelease']) ? (string)$_GET['osRelease'] : '';

0 commit comments

Comments
 (0)