Gracefully handle lack of the cookie

This commit is contained in:
2023-11-08 23:58:39 +01:00
parent 1ef84cb879
commit 0477fd5fa6
6 changed files with 13 additions and 4 deletions

View File

@ -362,8 +362,11 @@ XML;
// Composes POST data for fetching the latest update information from Windows Update
function composeFetchUpdRequest($arch, $flight, $ring, $build, $sku = 48, $type = 'Production', $flags = []) {
$device = uupDevice();
$encData = uupEncryptedData();
if($encData === false)
return false;
$device = uupDevice();
$uuid = genUUID();
$createdTime = time();