File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 6464 exit ();
6565}
6666
67+ $ allowedChannels = ['stable ' , 'daily ' , 'beta ' , 'enterprise ' ];
68+
6769// Read parameters
6870$ oem = isset ($ _GET ['oem ' ]) ? (string )$ _GET ['oem ' ] : null ;
6971$ platform = isset ($ _GET ['platform ' ]) ? (string )$ _GET ['platform ' ] : null ;
7274$ version = isset ($ _GET ['version ' ]) ? (string )$ _GET ['version ' ] : null ;
7375$ isSparkle = isset ($ _GET ['sparkle ' ]) ? true : false ;
7476$ isFileProvider = isset ($ _GET ['fileprovider ' ]) ? true : false ;
75- $ channel = isset ($ _GET ['channel ' ]) ? (string )$ _GET ['channel ' ] : 'stable ' ;
77+ // 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 ((string )$ _GET ['channel ' ], $ allowedChannels , true )
79+ ? (string )$ _GET ['channel ' ]
80+ : 'stable ' ;
7681
7782$ osRelease = isset ($ _GET ['osRelease ' ]) ? (string )$ _GET ['osRelease ' ] : '' ;
7883$ osVersion = isset ($ _GET ['osVersion ' ]) ? (string )$ _GET ['osVersion ' ] : '' ;
You can’t perform that action at this time.
0 commit comments